Int32Value class
Represents a 32-bit integer type in Firestore documents.
Only databases of the Enterprise edition store this type. A plain Dart
int is stored as a 64-bit integer; use this class when the field must
be a 32-bit integer.
await firestore.doc('items/a').set(<String, Object?>{
'quantity': Int32Value(3),
});
final DocumentSnapshot<Map<String, Object?>> snapshot =
await firestore.doc('items/a').get();
final int? quantity = snapshot.getInt32Value('quantity')?.value;
Constructors
- Int32Value(int value)
- Creates a 32-bit integer value.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- maxValue → const int
- The largest value an Int32Value can hold.
- minValue → const int
- The smallest value an Int32Value can hold.