SimpleDcFbController<T> class

Inheritance
  • Object
  • StateNotifier<AsyncValue<List<T>>>
  • SimpleDcFbController

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 of StateNotifier.
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<List<T>>> listener, {bool fireImmediately = true}) → RemoveListener
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<T>> old, AsyncValue<List<T>> current) bool
Whether to notify listeners or not when state changes
inherited

Operators

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

Constants

idKey → const String