innerDialog<T> static method

Future<T?> innerDialog<T>({
  1. required BuildContext context,
  2. required WidgetBuilder builder,
  3. bool barrierDismissible = true,
  4. Color? barrierColor = Colors.black54,
  5. String? barrierLabel,
  6. bool useSafeArea = true,
  7. bool useRootNavigator = true,
  8. String? name,
  9. 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,
  );
}