createUIEdgeInsets function

Future<UIEdgeInsets> createUIEdgeInsets(
  1. double top,
  2. double left,
  3. double bottom,
  4. double right
)

Implementation

Future<UIEdgeInsets> createUIEdgeInsets(
  double top,
  double left,
  double bottom,
  double right,
) async {
  final refId =
      await kMethodChannel.invokeMethod('PlatformFactory::createUIEdgeInsets', {
    'top': top,
    'left': left,
    'bottom': bottom,
    'right': right,
  });
  return UIEdgeInsets()
    ..refId = refId
    ..tag = 'platform';
}