NmCommandSetController class
Command set controller.
- Inheritance
-
- Object
- ChangeNotifier
- NmCommandSetController
Constructors
- NmCommandSetController(NmCommandSetRepository repository)
- Creates a NmCommandSetController.
Properties
- channelFilter ↔ NmResponseChannel?
-
Shows only the rules of this channel; null shows all.
getter/setter pair
- commandQuery ↔ String
-
Filter text of the commands list.
getter/setter pair
- draft ↔ NmCommandSetDraft?
-
Unsaved edits of the selected set; 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 ↔ NmCommandSetLoadState
-
Loading, ready or failed.
getter/setter pair
- pendingSelectionId ↔ String?
-
A set the user picked while the draft had unsaved changes (confirm to switch).
getter/setter pair
-
records
→ List<
NmCommandSet> -
All command sets from the repository.
no setter
- repository → NmCommandSetRepository
-
Where the command sets are read from and saved to.
final
- ruleQuery ↔ String
-
Filter text of the response rules list.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- section ↔ NmCommandSetSection
-
Which part of the set is being edited (commands or response rules).
getter/setter pair
-
selectableIds
→ List<
String> -
Ids of every set, in registry order.
no setter
- selected → NmCommandSet?
-
The selected set, with the draft applied.
no setter
- selectedCommand → NmOperatorCommand?
-
Selected command.
no setter
- selectedCommandId ↔ String?
-
Id of the command open in the editor.
getter/setter pair
- selectedId ↔ String?
-
Id of the command set shown in the detail pane.
getter/setter pair
- setQuery ↔ String
-
Filter text of the registry pane.
getter/setter pair
-
visibleCommands
→ List<
NmOperatorCommand> -
Visible commands.
no setter
-
visibleRules
→ List<
NmResponseRule> -
Visible rules.
no setter
-
visibleSets
→ List<
NmCommandSet> -
Visible sets.
no setter
Methods
-
addCommand(
NmCommandPurpose purpose, NmTelecomL10n l10n) → void - Add command.
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addRule(
NmTelecomL10n l10n) → void - Add rule.
-
cancelDraft(
) → void - Cancel draft.
-
cloneSet(
String sourceId, {required String id, required String name, required String operator, required String countryCode, required String countryName, String? region, required NmTelecomL10n l10n}) → NmCommandValidationResult - Clone set.
-
confirmDelete(
String id) → void - Confirm delete.
-
createBlank(
{required String id, required String name, required String operator, required String countryCode, required String countryName, String? region, required NmTelecomL10n l10n}) → NmCommandValidationResult - Create blank.
-
deleteCommand(
String id) → void - Delete command.
-
deleteRule(
String id) → void - Delete rule.
-
discardAndContinue(
) → void - Discard and continue.
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
duplicateCommand(
String id, NmTelecomL10n l10n) → void - Duplicate command.
-
duplicateRule(
String id, NmTelecomL10n l10n) → void - Duplicate rule.
-
inspectDelete(
String id, NmTelecomL10n l10n) → NmCommandSetDeleteImpact - Inspect delete.
-
keepEditing(
) → void - Keep editing.
-
load(
) → void - Load.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
reorderCommand(
int from, int to) → void - Reorder command.
-
reorderRule(
int from, int to) → void - Reorder rule.
-
requestSelectSet(
String id) → bool - Request select set.
-
resetDemo(
) → void - Reset demo.
-
save(
NmTelecomL10n l10n) → NmCommandValidationResult - Save.
-
selectCommand(
String id) → void - Select command.
-
selectSection(
NmCommandSetSection value) → void - Select section.
-
setChannelFilter(
NmResponseChannel? value) → void - Set channel filter.
-
setCommandQuery(
String value) → void - Set command query.
-
setRuleQuery(
String value) → void - Set rule query.
-
setSetQuery(
String value) → void - Set set query.
-
testRule(
String id, String sample, NmTelecomL10n l10n) → NmResponsePreview - Test rule.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCommand(
NmOperatorCommand command) → void - Update command.
-
updateMetadata(
{required String name, required String operatorName, required String countryCode, required String countryName, String? region}) → void - Update metadata.
-
updateRule(
NmResponseRule rule) → void - Update rule.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited