CurrentViewNotifier class

Inheritance

Constructors

CurrentViewNotifier()

Properties

canRedo → bool
no setter
canUndo → bool
no setter
debugState → OdooView?
A development-only way to access state outside of StateNotifier.
no setterinherited
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
onError ↔ ErrorListener?
A callback for error reporting if one of the listeners added with addListener throws.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ OdooView?
The current "state" of this StateNotifier.
getter/setter pairinherited
stream → Stream<OdooView?>
A broadcast stream representation of a StateNotifier.
no setterinherited

Methods

addFieldToGroup(String groupId, OdooField field) → void
addGroup(OdooGroup group) → void
addListener(Listener<OdooView?> listener, {bool fireImmediately = true}) → RemoveListener
Subscribes to this object.
inherited
addPage(NotebookPage page) → void
addTopLevelField(OdooField field) → void
Add a field to top-level fields
clearView() → void
dispose() → void
Frees all the resources associated with this object.
inherited
duplicateGroup(String groupId) → void
insertGroup(OdooGroup group, int index) → void
insertTopLevelField(OdooField field, int index) → void
Insert a field at a specific index in top-level fields
loadView(OdooView view) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redo() → void
removeFieldFromGroup(String groupId, String fieldId) → void
removeGroup(String groupId) → void
removePage(String pageId) → void
removeTopLevelField(String fieldId) → void
Remove a top-level field by id
reorderFieldInGroup(String groupId, int oldIndex, int newIndex) → void
reorderGroup(int oldIndex, int newIndex) → void
reorderTopLevelField(int oldIndex, int newIndex) → void
Reorder top-level fields
toString() → String
A string representation of this object.
inherited
undo() → void
updateFieldInGroup(String groupId, OdooField updated) → void
updateGroup(OdooGroup updated) → void
updateMeta({String? id, String? name, String? model, ViewType? viewType, String? docModule, int? priority, String? inheritId, String? defaultOrder}) → void
updateShouldNotify(OdooView? old, OdooView? current) → bool
Whether to notify listeners or not when state changes
inherited
updateTopLevelField(OdooField updated) → void
Update a top-level field

Operators

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