NmZoneController class

Zone controller.

Inheritance

Constructors

NmZoneController(NmZoneRepository repository)
Creates a NmZoneController.

Properties

draft ↔ NmZoneDraft?
Unsaved edits of the selected zone; null when nothing changed yet.
getter/setter pair
errorMessage ↔ String?
Why the last load or save failed, if it did.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
isDirty → bool
Whether the draft has unsaved changes.
no setter
loadState ↔ NmZoneLoadState
Loading, ready or failed.
getter/setter pair
pendingSelectionId ↔ String?
A zone the user picked while the draft had unsaved changes (confirm to switch).
getter/setter pair
query ↔ String
Filter text of the registry pane.
getter/setter pair
records → List<NmZone>
All zones from the repository.
no setter
repository → NmZoneRepository
Where the zones are read from and saved to.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → NmZone?
The selected zone, with the draft applied.
no setter
selectedId ↔ String?
Id of the zone shown in the detail pane.
getter/setter pair
visibleZones → List<NmZone>
Visible zones.
no setter

Methods

addGroupRule() → void
Add group rule.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
cancelDraft() → void
Cancel draft.
createZone(String id, String name, String? region, NmTelecomL10n l10n) → void
Create zone.
deleteZone(String id, NmTelecomL10n l10n) → void
Delete zone.
discardAndContinue() → void
Discard and continue.
dispose() → void
Discards any resources used by the object.
inherited
keepEditing() → void
Keep editing.
load() → void
Load.
moveGroupRule(int index, int direction) → void
Move group rule.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeGroupRule(int index) → void
Remove group rule.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
renameZone(String id, String name, String? region, String? billingCode, NmTelecomL10n l10n) → void
Rename zone.
requestSelectZone(String id) → bool
Request select zone.
resetDemo() → void
Reset demo.
save(NmTelecomL10n l10n) → void
Save.
setQuery(String q) → void
Set query.
toString() → String
A string representation of this object.
inherited
updateCodesText(String text) → void
Called on every textarea change — cheap even at 1,550 lines (split + trim + filter), no debounce needed for this prototype.
updateGroupRule(int index, {int? limitSlot, String? alg, String? type, String? group}) → void
Update group rule.

Operators

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