MeteorSharedObject class abstract

共享对象基类,需要多引擎共享的对象可以通过实现这个接口方便实现共享

Constructors

MeteorSharedObject({required bool? initialFromCache, String? sharedUniqueKey})

Properties

hashCode int
The hash code for this object.
no setterinherited
initialFromCache bool?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedUniqueKey String
no setter

Methods

copyWithJson(Map<String, dynamic> json) Map<String, dynamic>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveToSharedCache() Future<void>
setupFromJson(Map<String, dynamic>? json) → void
setupFromSharedCache() Future<void>
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

createFromCache<T extends MeteorSharedObject>(T constructor()) Future<T>