NmCommandSet class
Command set.
Constructors
-
NmCommandSet({required String id, required String name, required String operatorName, required String countryCode, required String countryName, String? region, NmCommandSetKind kind = NmCommandSetKind.operator, List<
NmOperatorCommand> commands = const [], List<NmResponseRule> responseRules = const [], List<String> usedByPlanIds = const []}) -
Creates a NmCommandSet.
const
Properties
-
commands
→ List<
NmOperatorCommand> -
Commands the gateway can run with this operator.
final
- countryCode → String
-
ISO country code of the operator.
final
- countryName → String
-
Country name as shown.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Stable id.
final
- isSystem → bool
-
True for the read-only system fallback.
no setter
- kind → NmCommandSetKind
-
Operator set or the system fallback.
final
- name → String
-
Display name.
final
- operatorName → String
-
The mobile operator the set is for.
final
- region → String?
-
Optional region within the country.
final
-
responseRules
→ List<
NmResponseRule> -
Rules that read the operator's replies.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
usedByPlanIds
→ List<
String> -
Dial plans that use the set.
final
Methods
-
copyWith(
{String? id, String? name, String? operatorName, String? countryCode, String? countryName, String? region, bool clearRegion = false, NmCommandSetKind? kind, List< NmOperatorCommand> ? commands, List<NmResponseRule> ? responseRules, List<String> ? usedByPlanIds}) → NmCommandSet - 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