Phone class
A phone number.
Once created, no properties of an Phone object may be changed.
- Annotations
-
- @immutable
Constructors
Properties
Methods
-
copyWith(
{String? label, String? phone}) → Phone - Creates a copy of this Phone instance but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Creates a JSON string representing this Phone instance.
-
toMap(
) → Map< String, dynamic> - Creates a Map<String, dynamic> representing this Phone instance.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant Phone other) → bool -
The equality operator.
override