SerializableCurrentInstant.fromMap constructor
Creates a SerializableCurrentInstant from a map structure, typically received from the platform-specific code.
The map may contain:
- 'estimatedErrorMillis' as an optional integer
- 'instantMillis' as an optional integer
Implementation
factory SerializableCurrentInstant.fromMap(Map<Object?, Object?> map) {
return SerializableCurrentInstant(
estimatedErrorMillis: map['estimatedErrorMillis'] as int?,
instantMillis: map['instantMillis'] as int?,
);
}