NmOperatorCommand class

Operator command.

Constructors

NmOperatorCommand({required String id, required NmCommandPurpose purpose, required String name, String? description, bool enabled = true, List<NmCommandParameter> parameters = const [], List<NmCommandOperation> operations = const []})
Creates a NmOperatorCommand.
const

Properties

description → String?
Optional note for operators of the gateway.
final
enabled → bool
Disabled commands are kept but never run.
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
Stable id within the set.
final
name → String
Display name.
final
operations → List<NmCommandOperation>
Steps run in order (USSD dialog, SMS, call, AT).
final
parameters → List<NmCommandParameter>
Inputs the operations use as placeholders.
final
purpose → NmCommandPurpose
What the command is for (the gateway picks commands by purpose).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, NmCommandPurpose? purpose, String? name, String? description, bool? enabled, List<NmCommandParameter>? parameters, List<NmCommandOperation>? operations}) → NmOperatorCommand
Copy with.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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