Team class
Represents a team with details about its location, status, and performance.
Constructors
- Team({required String team, required String name, required String country, String? state, required String district, required int rookieYear, required bool offseason, required bool active, required TeamColors colors, required Record record, required Epa normEpa})
- Constructs a Team instance with the specified properties.
-
Team.fromJson(Map<
String, dynamic> json) -
Creates a Team instance from a JSON Map.
factory
Properties
- active → bool
-
Indicates if the team is currently active.
final
- colors → TeamColors
-
The team's primary and secondary colors.
final
- country → String
-
The country in which the team is based.
final
- district → String
-
The district to which the team belongs.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the team.
final
- normEpa → Epa
-
The team's normalized EPA (Expected Points Added) score.
final
- offseason → bool
-
Indicates if the team is participating in the offseason.
final
- record → Record
-
The team's match record for the current and full season.
final
- rookieYear → int
-
The year the team began participating.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String?
-
The state in which the team is based, if applicable.
final
- team → String
-
Unique identifier for the team.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the Team instance to a JSON Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited