createUIColor function

Future<UIColor> createUIColor(
  1. Color color
)

Implementation

Future<UIColor> createUIColor(Color color) async {
  final refId = await kMethodChannel.invokeMethod(
      'PlatformFactory::createUIColor', {'colorValue': color.value});
  return UIColor()
    ..refId = refId
    ..tag = 'platform';
}