channel/params library

Functions

encodeStyle(BuildContext context, {Color? tint, Color? thumbTint, Color? trackTint, Color? trackBackgroundTint}) Map<String, dynamic>
Creates a unified style map for platform views. Keys (all ARGB ints):
resolveColorToArgb(Color? color, BuildContext context) int?
Resolves a possibly dynamic Cupertino color to a concrete ARGB int for the current BuildContext. Falls back to the raw color if not dynamic.