TrackData class
Represents data from the three tracks of a magnetic card.
Constructors
- TrackData.new({String? track1, String? track2, String? track3})
- Creates a new TrackData instance.
- TrackData.fromJson(String source)
-
Creates a TrackData instance from a JSON string.
factory
-
TrackData.fromMap(Map<
String, dynamic> map) -
Creates a TrackData instance from a map.
factory
Properties
- hashCode → int
-
Returns a hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- track1 → String?
-
Data from track 1 of the magnetic card.
final
- track2 → String?
-
Data from track 2 of the magnetic card.
final
- track3 → String?
-
Data from track 3 of the magnetic card.
final
Methods
-
copyWith(
{String? track1, String? track2, String? track3}) → TrackData - Creates a copy of this TrackData with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Converts the track data to a JSON string.
-
toMap(
) → Map< String, dynamic> - Converts the track data to a map.
-
toString(
) → String -
Returns a string representation of the track data.
override
Operators
-
operator ==(
Object other) → bool -
Checks if this object is equal to
other
.override