ModalShowFunction typedef
ModalShowFunction =
Future<T?> Function<T>(BuildContext context, {List<Widget> actionsColumn, EdgeInsets? actionsPadding, List<Widget> actionsRow, Color? backgroundColor, required Widget child, Color? closeButtonColor, Color? closeButtonIconColor, EdgeInsets? contentPadding, bool enableDrag, Color? handleColor, Widget? header, EdgeInsets? headerPadding, double? height, bool isDismissible, bool isScrollControlled, Color? modalBackgroundColor, BoxDecoration? modalDecoration, bool showCloseButton, bool showHandle, bool useSafeArea})
Type definition for the NyBaseModal.show method. Use this to preserve type information when creating references to the show method.
Implementation
typedef ModalShowFunction =
Future<T?> Function<T>(
BuildContext context, {
required Widget child,
List<Widget> actionsRow,
List<Widget> actionsColumn,
double? height,
Widget? header,
bool useSafeArea,
bool isScrollControlled,
bool isDismissible,
bool enableDrag,
bool showCloseButton,
EdgeInsets? headerPadding,
EdgeInsets? contentPadding,
EdgeInsets? actionsPadding,
Color? backgroundColor,
bool showHandle,
Color? closeButtonColor,
Color? closeButtonIconColor,
BoxDecoration? modalDecoration,
Color? handleColor,
bool useRootNavigator,
Color? modalBackgroundColor,
});