creationParamsCodec top-level constant
StandardMessageCodec
const creationParamsCodec
Shared types and encoding for platform view creation params.
Common param keys sent to native (keep in sync with Swift ChannelConstants / view parsers):
- Style (ARGB ints):
tint,thumbTint,trackTint,trackBackgroundTint,iconColor,backgroundColor - Layout:
cornerRadius,effect,shape,interactive,isDark - Control state:
value,min,max,enabled,step,selectedIndexUse encodeStyle and resolveColorToArgb for style maps so keys stay consistent. Codec used for platform view creation params. Use with UiKitView / AppKitView.
Implementation
/// Codec used for platform view creation params. Use with [UiKitView] / [AppKitView].
const StandardMessageCodec creationParamsCodec = StandardMessageCodec();