Fragment class abstract interface Document

Provides readonly access to data value.

Fragment also provides subscript access by either key or index to the nested values which are wrapped by Fragment objects.

Implemented types
Implementers

Constructors

Fragment()

Properties

array Array?
The value of this fragment as an Array.
no setterinherited
blob Blob?
The value of this fragment as a Blob.
no setterinherited
boolean bool
The value of this fragment as a bool.
no setterinherited
date DateTime?
The value of this fragment as a DateTime.
no setterinherited
dictionary Dictionary?
The value of this fragment as a Dictionary.
no setterinherited
exists bool
Whether the value of this fragment exists.
no setterinherited
float double
The value of this fragment as a floating point number.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
integer int
The value of this fragment as an integer number.
no setterinherited
number num?
The value of this fragment as a num.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
string String?
The value of this fragment as a String.
no setterinherited
value Object?
The value of this fragment.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
valueAs<T extends Object>() → T?
The value of this fragment as a value of type T.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object indexOrKey) Fragment
Returns a Fragment for the value at the given index.
override