StateAction class
StateAction class
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
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  changeLanguage(dynamic state, {required String language, bool restartState = true}) → void 
- Update the language in the application
- 
  confirmAction(dynamic state, {required dynamic action(), required String title, String dismissText = "Cancel"}) → Future< void> 
- Perform a confirm action
- 
  pop(dynamic state, {dynamic result}) → void 
- Pop the page
- 
  refreshPage(dynamic state, {dynamic setState()?}) → void 
- Refresh the page
- 
  setState(dynamic state, dynamic setState()) → void 
- Set the state of the page
- 
  showToastCustom(dynamic state, {String? title, required String description, ToastNotificationStyleType? style}) → void 
- Display a custom Toast message.
- 
  showToastDanger(dynamic state, {String? title, required String description, ToastNotificationStyleType? style}) → void 
- 
  Displays a Toast message containing "Error" for the title, you
only need to provide a description.
- 
  showToastInfo(dynamic state, {String? title, required String description, ToastNotificationStyleType? style}) → void 
- 
  Displays a Toast message containing "Info" for the title, you
only need to provide a description.
- 
  showToastOops(dynamic state, {String? title, required String description, ToastNotificationStyleType? style}) → void 
- 
  Displays a Toast message containing "Oops" for the title, you
only need to provide a description.
- 
  showToastSorry(dynamic state, {String? title, required String description, ToastNotificationStyleType? style}) → void 
- 
  Displays a Toast message containing "Sorry" for the title, you
only need to provide a description.
- 
  showToastSuccess(dynamic state, {String? title, required String description, ToastNotificationStyleType? style}) → void 
- 
  Displays a Toast message containing "Success" for the title, you
only need to provide a description.
- 
  showToastWarning(dynamic state, {String? title, required String description, ToastNotificationStyleType? style}) → void 
- 
  Displays a Toast message containing "Warning" for the title, you
only need to provide a description.
- 
  validate(dynamic state, {required Map< String, dynamic> rules, Map<String, dynamic> ? data, Map<String, dynamic> ? messages, bool showAlert = true, Duration? alertDuration, ToastNotificationStyleType alertStyle = ToastNotificationStyleType.warning, required dynamic onSuccess()?, dynamic onFailure(Exception exception)?, String? lockRelease}) → void
- Validate data from your widget.