Recurrent class
Инструкция для создания подписки
- Annotations
-
- @freezed
Constructors
- Recurrent({required ReccurentInterval interval, required int period, int? maxPeriods, num? amount, DateTime? startDate, String? customerReceipt})
-
Инструкция для создания подписки
constfactory
-
Recurrent.fromJson(Map<
String, dynamic> json) -
Converts a JSON Map into a Recurrent instance
factory
- Recurrent.monthly({@Default(ReccurentInterval.month) ReccurentInterval interval, DateTime? startDate, @Default(1) int period})
-
Ежемесячная подписка
constfactory
Properties
-
copyWith
→ $RecurrentCopyWith<
Recurrent> -
Create a copy of Recurrent
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → ReccurentInterval
-
Интервал. Возможные значения: Day, Week, Month
no setterinherited
- period → int
-
Период. В комбинации с интервалом, 1 Month значит раз в месяц, а 2 Week — раз в две недели.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDate → DateTime?
-
Дата и время первого регулярного платежа.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_Recurrent value), {required TResult monthly(_MonthlyRecurrent value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> (TResult? $default(_Recurrent value)?, {TResult? monthly(_MonthlyRecurrent value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> (TResult $default(_Recurrent value)?, {TResult monthly(_MonthlyRecurrent value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> (TResult $default(ReccurentInterval interval, int period, int? maxPeriods, num? amount, DateTime? startDate, String? customerReceipt)?, {TResult monthly(ReccurentInterval interval, DateTime? startDate, int period)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Recurrent to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(ReccurentInterval interval, int period, int? maxPeriods, num? amount, DateTime? startDate, String? customerReceipt), {required TResult monthly(ReccurentInterval interval, DateTime? startDate, int period)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> (TResult? $default(ReccurentInterval interval, int period, int? maxPeriods, num? amount, DateTime? startDate, String? customerReceipt)?, {TResult? monthly(ReccurentInterval interval, DateTime? startDate, int period)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited