SimpleDcFbController<T> class
Constructors
-
SimpleDcFbController(Ref<
Object?> ref, String? myid, SimpleDcFbConfig<T> config, {bool initialLoad = false})
Properties
-
config
→ SimpleDcFbConfig<
T> -
final
-
debugState
→ AsyncValue<
List< T> > -
A development-only way to access
state
outside ofStateNotifier
.no setterinherited -
fbCol
→ CollectionReference<
Map< String, dynamic> > -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
If a listener has been added using
addListener
and hasn't been removed yet.no setterinherited - mounted → bool
-
Whether
dispose
was called or not.no setterinherited - myid → String?
-
final
- onError ↔ ErrorListener?
-
A callback for error reporting if one of the listeners added with
addListener
throws.getter/setter pairinherited -
ref
→ Ref<
Object?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
↔ AsyncValue<
List< T> > -
The current "state" of this
StateNotifier
.getter/setter pairinherited -
stream
→ Stream<
AsyncValue< List< >T> > -
A broadcast stream representation of a
StateNotifier
.no setterinherited
Methods
-
add(
T t, {bool addToState = true, bool toLast = true}) → Future< T?> -
addListener(
Listener< AsyncValue< listener, {bool fireImmediately = true}) → RemoveListenerList< >T> > -
Subscribes to this object.
inherited
-
addMore(
List< T> ? origin, List<T> add, {bool toLast = true}) → List<T> -
delete(
T t) → Future< T?> -
dispose(
) → void -
Frees all the resources associated with this object.
inherited
-
edit(
T t) → Future< T?> -
fbDoc(
String id) → DocumentReference< Object?> -
getId(
T t) → String -
load(
{sortChoice? sortBy, List< FilterFunc> filters = const [], bool loadMore = false}) → Future<int?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateShouldNotify(
AsyncValue< List< old, AsyncValue<T> >List< current) → boolT> > -
Whether to notify listeners or not when
state
changesinherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited