Period class

Contains all the details associated with a Period

Annotations
  • @freezed

Constructors

Period(PeriodUnit unit, int value, String iso8601)
const
factory
Period.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $PeriodCopyWith<Period>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
iso8601 String
Specified in ISO 8601 format. For example, P1W equates to one week, P1M equates to one month, P3M equates to three months, P6M equates to six months, and P1Y equates to one year
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit PeriodUnit
The number of period units: day, week, month, year, unknown
no setterinherited
value int
The increment of time that a subscription period is specified in
no setterinherited

Methods

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

Operators

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