innerDialog<T> static method
Future<T?>
innerDialog<T>({
- required BuildContext context,
- required WidgetBuilder builder,
- bool barrierDismissible = true,
- Color? barrierColor = Colors.black54,
- String? barrierLabel,
- bool useSafeArea = true,
- String? name,
- Offset? anchorPoint,
Implementation
static Future<T?> innerDialog<T>({
required BuildContext context,
required WidgetBuilder builder,
bool barrierDismissible = true,
Color? barrierColor = Colors.black54,
String? barrierLabel,
bool useSafeArea = true,
bool useRootNavigator = true,
String? name,
Offset? anchorPoint,
}) {
if (name != null && !name.startsWith(routeNamePrefix)) {
throw Exception('innerDialog name must start with "$routeNamePrefix"');
}
return showDialog(
context: context,
builder: builder,
barrierDismissible: barrierDismissible,
barrierColor: barrierColor,
barrierLabel: barrierLabel,
useSafeArea: useSafeArea,
useRootNavigator: useRootNavigator,
routeSettings: RouteSettings(name: name ?? generateDefaultRouteName(type: "Dialog")),
anchorPoint: anchorPoint,
);
}