Period class

The Period class holds the amounts of periodUnits. Basically 3 Months or 5 Days, 1 Year etc.

See ISO 8601 for more information

toString will print P30D or P3M etc.

Constructors

Period.fromAppStore(SKProductSubscriptionPeriodWrapper subscriptionPeriod)
Apple already splits the response to numbers and Units.
factory
Period.fromGooglePlay(String periodText)
This will parse the Google Play Response for the Period
factory
Period.fromLinkFive(String period)
factory

Properties

amount int
final
hashCode int
The hash code for this object.
no setterinherited
iso8601 String
no setter
jsonValue String
no setter
periodUnit PeriodUnit
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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