show method

  1. @override
Future<bool> show({
  1. double? width,
  2. double? height,
  3. double? x,
  4. double? y,
})
override

Implementation

@override
Future<bool> show({double? width, double? height, double? x, double? y}) async {
  final Map<String, dynamic> arguments = {};
  if (width != null) arguments['width'] = width;
  if (height != null) arguments['height'] = height;
  if (x != null) arguments['x'] = x;
  if (y != null) arguments['y'] = y;

  final result = await methodChannel.invokeMethod<bool>('show', arguments);
  return result ?? false;
}