WithChildren<P, C> class final

One row in the snapshot returned by Query.watchWithSub — a parent CItem<P> alongside the current list of its children CItem<C> from a single named sub-collection.

Equivalent to a (parent, children) record but a named class so the SDK can add fields in future minor versions without breaking destructuring code at consumer sites.

Constructors

WithChildren({required CItem<P> parent, required List<CItem<C>> children})
const

Properties

children List<CItem<C>>
final
hashCode int
The hash code for this object.
no setterinherited
parent CItem<P>
final
runtimeType Type
A representation of the runtime type of the object.
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

Operators

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