FrViewModel<M extends dynamic> class
abstract
2.ViewModel FrViewModel optional mixin TestLoggableMx for test print
- Inheritance
- Mixed-in types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initValue → M
-
no setter
- logExtra → LogExtra?
-
set put log type
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
slowly
→ Slowly<
Object> -
no setteroverride
-
stream
↔ ValueStream<
M> -
get value's stream
getter/setter pairoverride-getter
-
subject
→ BehaviorSubject<
M> -
no setter
- value → M
-
get current value
no setteroverride
Methods
-
autoDispose<
T extends StreamSubscription?> (T subs, {String? tag}) → T -
inherited
-
autoDisposeNotifier<
N extends ChangeNotifier?> (N ntf, {String? tag}) → N -
inherited
-
debounceMs<
R> (Object tag, R func, {int ms = 200}) → Future< R?> -
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
initValue 初始值
如果不想设置初始值, 请return null;
如果要需要异步初始化, 请return null, 并覆写
onCreate
函数override -
dispose(
) → void -
override
-
frPrint(
String message, {DateTime? time, int? sequenceNumber, int? level, String? name, Zone? zone, Object? error, StackTrace? stackTrace}) → dynamic -
override
-
logger(
String message, {LogExtra? logExtra = !kReleaseMode ? LogExtra.self : null, bool uriFrame = false, DateTime? time, int? sequenceNumber, int level = 0, String? name, Zone? zone, Object? error, StackTrace? stackTrace}) → dynamic -
logExtra
print stack frame info; (at log.name)uriFrame
showlogExtra
uri; (at log.message)override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ntfBy<
T extends ChangeNotifier> (String tag) → T -
inherited
-
put(
M value) → void -
put new value
override
-
putError(
Object error, [StackTrace? stackTrace]) → void -
put new error
override
-
runCatching<
R> (FutureOr< R> block(), {void onSuccess(R data)?, void onFailure(Object e, StackTrace s)?}) → FutureOr<R?> -
inherited
-
subBy<
T extends StreamSubscription> (String tag) → T -
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
update(
FutureOr< M> update(M old), {dynamic onError(Object e, StackTrace s)?, int slowlyMs = 100, Object? debounceTag, Object? throttleTag}) → Future<void> -
执行一个异步操作, 并更新状态
不建议对本方法进行二次包装, 因此返回值强制为 void
override
-
updateRaw(
FutureOr< M?> update(M old), {dynamic onError(Object e, StackTrace s)?, int slowlyMs = 100, Object? debounceTag, Object? throttleTag}) → FutureOr<M?> -
use debounceMs|
throttleTag
, must 'await' to get correct stace traceoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited