ViewEvent class

Annotations

Constructors

ViewEvent.alert({required String message})
警告通知イベント 引数のメッセージをDialogに表示?
const
factory
ViewEvent.complete({required BaseViewEventType type})
完了通知イベント 引数のtypeに応じたメッセージをSnackBarに表示
const
factory
ViewEvent.error({required BaseViewEventType type})
エラー通知イベント 引数のtypeに応じたメッセージをSnackBarに表示
const
factory
ViewEvent.failure({required BaseViewEventType type})
失敗通知イベント 引数のtypeに応じたメッセージをSnackBarに表示
const
factory
ViewEvent.navigate({required Routes route, Object? arguments})
go_routerによる遷移イベント
const
factory

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

map<TResult extends Object?>({required TResult complete(_Complete value), required TResult failure(_Failure value), required TResult error(_Error value), required TResult alert(_Alert value), required TResult navigate(_GoRoute value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? complete(_Complete value)?, TResult? failure(_Failure value)?, TResult? error(_Error value)?, TResult? alert(_Alert value)?, TResult? navigate(_GoRoute value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult complete(_Complete value)?, TResult failure(_Failure value)?, TResult error(_Error value)?, TResult alert(_Alert value)?, TResult navigate(_GoRoute value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult complete(BaseViewEventType type)?, TResult failure(BaseViewEventType type)?, TResult error(BaseViewEventType type)?, TResult alert(String message)?, TResult navigate(Routes route, Object? arguments)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult complete(BaseViewEventType type), required TResult failure(BaseViewEventType type), required TResult error(BaseViewEventType type), required TResult alert(String message), required TResult navigate(Routes route, Object? arguments)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? complete(BaseViewEventType type)?, TResult? failure(BaseViewEventType type)?, TResult? error(BaseViewEventType type)?, TResult? alert(String message)?, TResult? navigate(Routes route, Object? arguments)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited