Recurrent class
Инструкция для создания подписки
- Annotations
-
- @freezed
Constructors
- Recurrent({required String interval, required int period, int? maxPeriods, double? amount, DateTime? startDate, String? customerReceipt})
-
Инструкция для создания подписки
constfactory
-
Recurrent.fromJson(Map<
String, dynamic> json) -
Converts a JSON Map into a Recurrent instance
factory
- Recurrent.monthly({@Default('Month') String interval, @Default(1) int period})
-
Ежемесячная подписка
constfactory
Properties
-
copyWith
→ $RecurrentCopyWith<
Recurrent> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interval → String
-
Интервал. Возможные значения: 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
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(String interval, int period, int? maxPeriods, double? amount, DateTime? startDate, String? customerReceipt)?, {TResult monthly(String interval, 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> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String interval, int period, int? maxPeriods, double? amount, DateTime? startDate, String? customerReceipt), {required TResult monthly(String interval, int period)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> (TResult? $default(String interval, int period, int? maxPeriods, double? amount, DateTime? startDate, String? customerReceipt)?, {TResult? monthly(String interval, int period)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited