NmInMemoryPlanRepository class
liveSimPlanIds is read at delete time (not captured once) so the referenced-
by-SIM guard always reflects the current mock data, not a stale snapshot.
- Implemented types
Constructors
-
NmInMemoryPlanRepository(Iterable<
NmDialPlan> seed, {required List<String> liveSimPlanIds()}) - Creates a NmInMemoryPlanRepository.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
liveSimPlanIds
→ List<
String> Function() -
Plans that live SIMs use right now (they cannot be deleted).
final
-
records
→ List<
NmDialPlan> -
All dial plans, in display order.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
byId(
String id) → NmDialPlan? -
By id.
override
-
create(
NmDialPlan record, NmTelecomL10n l10n) → void -
Create.
override
-
delete(
String id, NmTelecomL10n l10n) → void -
Delete.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replace(
String id, NmDialPlan record, NmTelecomL10n l10n) → void -
Replace.
override
-
reset(
) → void -
Reset.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited