showDeveloperOptions function

Future<void> showDeveloperOptions({
  1. required BuildContext context,
  2. required AsyncCallback? onResetDeveloperOptions,
  3. ChildrenConsumerBuilder? children,
})

Show the developer options bottom sheet

Implementation

Future<void> showDeveloperOptions({
  required BuildContext context,
  required AsyncCallback? onResetDeveloperOptions,
  ChildrenConsumerBuilder? children,
}) {
  final capturedMediaQuery = MediaQuery.of(context);

  return showModalBottomSheet(
    context: context,
    builder: (context) => MediaQuery(
      data: capturedMediaQuery,
      child: DeveloperOptionsSheet(
        onResetDeveloperOptions: onResetDeveloperOptions,
        children: children,
      ),
    ),
    isScrollControlled: true,
    backgroundColor: Colors.transparent,
  );
}