Birthdate class abstract

Represents a user's birthdate.

Annotations
  • @freezed

Constructors

Birthdate.new({@JsonKey(name: 'day') required int day, @JsonKey(name: 'month') required int month, @JsonKey(name: 'year') int? year})
Creates a Birthdate object.
const
factory
Birthdate.fromJson(Map<String, dynamic> json)
Creates a Birthdate object from a JSON map.
factory

Properties

copyWith → $BirthdateCopyWith<Birthdate>
Create a copy of Birthdate with the given fields replaced by the non-null parameter values.
no setterinherited
day int
Day of the user's birth; 1-31.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
month int
Month of the user's birth; 1-12.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int?
Optional. Year of the user's birth.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this Birthdate to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited