launch method

Future<Null> launch(
  1. String path, {
  2. Rect? rect,
})

Implementation

Future<Null> launch(String path, {Rect? rect}) async {
  final args = <String, dynamic>{'path': path};
  if (rect != null) {
    args['rect'] = {
      'left': rect.left,
      'top': rect.top,
      'width': rect.width,
      'height': rect.height
    };
  }
  await _channel.invokeMethod('launch', args);
}