presentSheet static method

Future<void> presentSheet({
  1. String title = '',
})

Presents a native sheet with the given title.

Implementation

static Future<void> presentSheet({String title = ''}) async {
  if (defaultTargetPlatform != TargetPlatform.iOS) {
    return;
  }
  try {
    await _channel.invokeMethod<void>('presentSheet', <String, dynamic>{'title': title});
  } on MissingPluginException {
    // Ignored — non-iOS or not registered.
  }
}