RM class abstract

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 Properties

context BuildContext?
Get an active BuildContext.
no setter
env ↔ dynamic
Static variable the holds the chosen working environment or flavour.
getter/setter pair
getter/setter pair
scaffold ↔ _Scaffold
getter/setter pair
transitions ↔ _Transitions
getter/setter pair

Static Methods

deleteAllPersistState() Future<void>
disposeAll() → void
get<T>([String? name]) ReactiveModel<T>
inject<T>(T creator(), {T? initialState, SnapState<T>? middleSnapState(MiddleSnapState<T> middleSnap)?, void onInitialized(T? s)?, void onDisposed(T s)?, void onWaiting()?, void onData(T s)?, On<void>? onSetState, void onError(dynamic e, StackTrace? s)?, DependsOn<T>? dependsOn, int undoStackLength = 0, PersistState<T> persist()?, bool isLazy = true, bool autoDisposeWhenNotUsed = true, String? debugPrintWhenNotifiedPreMessage, String toDebugString(T?)?}) Injected<T>
Functional injection of a primitive, enum or object.
injectAnimation({required Duration duration, Duration? reverseDuration, Curve curve = Curves.linear, Curve? reverseCurve, double? initialValue, double lowerBound = 0.0, double upperBound = 1.0, AnimationBehavior animationBehavior = AnimationBehavior.normal, int? repeats, bool shouldReverseRepeats = false, bool shouldAutoStart = false, void onInitialized(InjectedAnimation)?, void endAnimationListener()?}) InjectedAnimation
Inject an animation. It works for both implicit and explicit animation.
injectAuth<T, P>(IAuth<T, P> repository(), {T? unsignedUser, P param()?, void onSigned(T s)?, void onUnsigned()?, Duration autoSignOut(T auth)?, FutureOr<Stream<T>> onAuthStream(IAuth<T, P> repo)?, SnapState<T>? middleSnapState(MiddleSnapState<T> middleSnap)?, void onInitialized(T? s)?, void onDisposed(T s)?, On<void>? onSetState, PersistState<T> persist()?, String? debugPrintWhenNotifiedPreMessage, String toDebugString(T?)?}) InjectedAuth<T, P>
Functional injection of a state that can authenticate and authorize a user.
injectCRUD<T, P>(ICRUD<T, P> repository(), {P param()?, bool readOnInitialization = false, OnCRUD<void>? onCRUD, SnapState<List<T>>? middleSnapState(MiddleSnapState<List<T>> middleSnap)?, void onInitialized(List<T>? s)?, void onDisposed(List<T> s)?, On<void>? onSetState, DependsOn<List<T>>? dependsOn, int undoStackLength = 0, PersistState<List<T>> persist()?, bool autoDisposeWhenNotUsed = true, bool isLazy = true, String? debugPrintWhenNotifiedPreMessage, String toDebugString(List<T>?)?}) InjectedCRUD<T, P>
Functional injection of a state that can create, read, update and delete from a backend or database service.
injectFlavor<T>(Map<dynamic, FutureOr<T> Function()> impl, {T? initialState, SnapState<T>? middleSnapState(MiddleSnapState<T> middleSnap)?, void onInitialized(T? s)?, void onDisposed(T s)?, void onWaiting()?, void onData(T s)?, void onError(dynamic e, StackTrace? s)?, On<void>? onSetState, DependsOn<T>? dependsOn, int undoStackLength = 0, PersistState<T> persist()?, bool autoDisposeWhenNotUsed = true, bool isLazy = true, String? debugPrintWhenNotifiedPreMessage, String toDebugString(T?)?}) Injected<T>
Functional injection of flavors (environments).
injectForm({AutovalidateMode autovalidateMode = AutovalidateMode.disabled, bool autoFocusOnFirstError = true, void onSubmitting()?, void onSubmitted()?, Future<void> submit()?}) InjectedForm
Inject a form.
injectFuture<T>(Future<T> creator(), {T? initialState, SnapState<T>? middleSnapState(MiddleSnapState<T> middleSnap)?, void onInitialized(T? s)?, void onDisposed(T s)?, void onWaiting()?, void onData(T s)?, void onError(dynamic e, StackTrace? s)?, DependsOn<T>? dependsOn, int undoStackLength = 0, PersistState<T> persist()?, bool isLazy = true, bool autoDisposeWhenNotUsed = true, String? debugPrintWhenNotifiedPreMessage, String toDebugString(T?)?}) Injected<T>
Functional injection of a Future.
injectI18N<I18N>(Map<Locale, FutureOr<I18N> Function()> i18Ns, {String? persistKey, SnapState<I18N>? middleSnapState(MiddleSnapState<I18N> middleSnap)?, void onInitialized(I18N? s)?, void onDisposed(I18N s)?, On<void>? onSetState, DependsOn<I18N>? dependsOn, int undoStackLength = 0, String? debugPrintWhenNotifiedPreMessage}) InjectedI18N<I18N>
Functional injection of a state that handle app internationalization and localization.
injectPageTab({int initialIndex = 0, required int length, Duration duration = kTabScrollDuration, Curve curve = Curves.ease, bool keepPage = true, double viewportFraction = 1.0}) InjectedPageTab
Injected a PageController and/or a TabController
injectScrolling({double initialScrollOffset = 0.0, bool keepScrollOffset = true, void onScrolling(InjectedScrolling)?, int endScrollDelay = 300}) InjectedScrolling
Inject a ScrollController
injectStream<T>(Stream<T> creator(), {T? initialState, SnapState<T>? middleSnapState(MiddleSnapState<T> middleSnap)?, void onInitialized(T? s, StreamSubscription subscription)?, void onDisposed(T s)?, void onWaiting()?, void onData(T s)?, On<void>? onSetState, PersistState<T> persist()?, void onError(dynamic e, StackTrace? s)?, DependsOn<T>? dependsOn, int undoStackLength = 0, bool isLazy = true, bool autoDisposeWhenNotUsed = true, String? debugPrintWhenNotifiedPreMessage, String toDebugString(T?)?, Object? watch(T? s)?}) Injected<T>
Functional injection of a Stream.
injectTextEditing({String text = '', TextSelection selection = const TextSelection.collapsed(offset: -1), TextRange composing = TextRange.empty, String? validator(String? text)?, bool? validateOnTyping, bool? validateOnLoseFocus, void onTextEditing(InjectedTextEditing textEditing)?, bool autoDispose = true}) InjectedTextEditing
Inject a TextEditingController
injectTheme<KEY>({required Map<KEY, ThemeData> lightThemes, Map<KEY, ThemeData>? darkThemes, ThemeMode themeMode = ThemeMode.system, String? persistKey, SnapState<KEY>? middleSnapState(MiddleSnapState<KEY> middleSnap)?, void onInitialized(KEY? s)?, void onDisposed(KEY s)?, On<void>? onSetState, DependsOn<KEY>? dependsOn, int undoStackLength = 0, bool autoDisposeWhenNotUsed = true, bool isLazy = true, String? debugPrintWhenNotifiedPreMessage, String toDebugString(KEY?)?}) InjectedTheme<KEY>
Functional injection of a state that handle app theme switching.
storageInitializer(IPersistStore store) Future<void>
Initialize the default persistance provider to be used.
storageInitializerMock() Future<_PersistStoreMock>
Initialize a mock persistance provider.