FlutterDialogService class
A classe FlutterDialogService é um singleton que fornece um mecanismo para mostrar diálogos. Esta classe não utiliza nenhum package para mostrar diálogos, utiliza apenas a api do flutter.
Exemplo:
var dialogService = FlutterDialogService.init(navigatorKey);
dialogService.show();
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
confirmation<
T> ({required String title, String? description, Widget? content, bool dismissible = true, VoidCallback? cancel, VoidCallback? confirm, T close()?, String confirmText = 'Confirmar', String cancelText = 'Cancelar', bool closeOnConfirm = true, bool closeOnCancel = true, bool showCloseButton = true, BoxConstraints? constraints}) → Future< T?> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show<
T> ({required String title, required Widget content, bool dismissible = true, bool showCloseButton = true, T close()?, List< Widget> ? actions, BoxConstraints? constraints}) → Future<T?> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
getter/setter pair