Controller class abstract

Implementers

Constructors

Controller()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
getContext() → dynamic
getListenedCollections() List<Type>
initState() → void
isLoading() bool
Wether the Controller is loading or not.
listenedCollectionChanged(String collectionId) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose() Future<void>
onInitState() Future<void>
Calls once after the view calls initState
onListenedCollectionChanged(String collectionId) Future<void>
onRefresh() Future<void>
Use this method to refresh the view eg. if some item was removed.
onRegister() Future<void>
Calls once after the controller is registered.
onReload() Future<void>
Use this method to calculate database etc.
refresh() → void
registerController() Future<void>
reload() Future<void>
setLoading(bool value) → void
Set Loading and refresh the current Controller.
setup({required Function onRefresh, dynamic context}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

clear() → void
get<C extends Controller>({String? id}) → C
refreshAll() → void
refreshSome(List<Type> controllers) → void
register(Controller controller) Future<void>
reloadAll() → void
reloadSome(List<Type> controllers) → void