FieldValueFactoryPlatform class abstract

An interface for a factory that is used to build a FieldValuePlatform according to Platform (web or mobile)

This class would make sense as a generic, but is not doing so to avoid a breaking change.

Inheritance
  • Object
  • PlatformInterface
  • FieldValueFactoryPlatform

Constructors

FieldValueFactoryPlatform()
Constructor to initialize the PlatformInterface base class

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

arrayRemove(List elements) → dynamic
Returns a special value that tells the server to remove the given elements from any array value that already exists on the server.
arrayUnion(List elements) → dynamic
Returns a special value that tells the server to union the given elements with any array value that already exists on the server.
delete() → dynamic
Returns a sentinel for use with update() to mark a field for deletion.
increment(num value) → dynamic
Returns a special value for use with set() or update() that tells the server to increment the field’s current value by the given value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serverTimestamp() → dynamic
Returns a sentinel for use with set() or update() to include a server-generated timestamp in the written data.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FieldValueFactoryPlatform
Current instance of FieldValueFactoryPlatform
getter/setter pair

Static Methods

verify(FieldValueFactoryPlatform instance) → void
Throws an AssertionError if instance does not extend FieldValueFactoryPlatform.
override