confirmDialog property

Future<bool?> Function({required BuildContext context, required String message, required String? title})? confirmDialog
getter/setter pair

Global BuildContext

앱의 global build context 를 사용한다.

House 에서 snackbar 등을 사용할 때, global build context 를 사용하면, 앱에서 페이지를 이동해도 snackbar 닫기 등을 할 수 있다. Confirm Dialog this callback is used to customize all the confirm functions in fireflutter see lib/fireflutter.functions.dart

Implementation

// BuildContext Function()? _globalContext;
// BuildContext? get globalContext => _globalContext?.call();

/// Confirm Dialog this callback is used to customize all the confirm functions
/// in fireflutter see `lib/fireflutter.functions.dart`
Future<bool?> Function({
  required BuildContext context,
  required String? title,
  required String message,
})? confirmDialog;