show static method

Future<int?> show({
  1. required BuildContext context,
  2. required List<String> actions,
  3. String? title,
  4. String cancelText = 'Cancel',
})

Shows an action sheet adapted to the platform.

Implementation

static Future<int?> show({
  required BuildContext context,
  required List<String> actions,
  String? title,
  String cancelText = 'Cancel',
}) async {
  if (Platform.isIOS || Platform.isMacOS) {
    return _showBottomSheet(
      context,
      actions: actions,
      title: title,
      cancelText: cancelText,
    );
  }
  return _showBottomSheet(
    context,
    actions: actions,
    title: title,
    cancelText: cancelText,
  );
}