NmPlan class

A subscription plan.

Annotations

Constructors

NmPlan({required String id, required int months, required NmPrice price, String? title, NmPrice? originalPrice, String? badge})
Creates an NmPlan.
const

Properties

badge → String?
Overrides the default "−N%" badge.
final
discountPercent → int?
Whole-percent discount against originalPrice, or null.
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable plan id.
final
months → int
Billing period in months.
final
originalPrice → NmPrice?
Price before the discount (strikethrough).
final
perMonth → NmPrice
Price per month, rounded to minor units.
no setter
price → NmPrice
Price of the whole period.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
Overrides the default "N months" title.
final

Methods

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

Operators

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