PriceRange class

价格区间

Constructors

PriceRange({required double min, required double max, required String currency, required String symbol})
PriceRange.fromJson(Map<String, dynamic> json)
factory

Properties

currency String
final
hashCode int
The hash code for this object.
no setterinherited
max double
final
min double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
final

Methods

formatPrice(double price) String
格式化单个价格显示
getFormattedRange() String
格式化价格范围显示
getNumericRange() String
获取纯数字的价格范围字符串(用于计算)
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