toMethodChannelArgumentMap method

Map<String, dynamic> toMethodChannelArgumentMap({
  1. Color? deprecatedToolbarColor,
  2. Color? deprecatedSecondaryToolbarColor,
  3. Color? deprecatedNavigationBarColor,
})

Implementation

Map<String, dynamic> toMethodChannelArgumentMap({
  Color? deprecatedToolbarColor,
  Color? deprecatedSecondaryToolbarColor,
  Color? deprecatedNavigationBarColor,
}) {
  return {
    'toolbarColor': (toolbarColor ?? deprecatedToolbarColor)?.hexColor,
    'secondaryToolbarColor':
        (secondaryToolbarColor ?? deprecatedSecondaryToolbarColor)?.hexColor,
    'navigationBarColor':
        (navigationBarColor ?? deprecatedNavigationBarColor)?.hexColor,
    'navigationBarDividerColor': navigationBarDividerColor?.hexColor,
  };
}