show static method
Future<int?>
show({
- required BuildContext context,
- required List<
String> actions, - String? title,
- 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,
);
}