Valuable class

Base instance at valuable

Constructors

Valuable.new({required String title, required String value})
Valuable.equality(String value)
Create a valuable with a same title & value
factory
Valuable.fromJson(JsonMap params, {String titleKey = 'name', String valueKey = 'id'})
Create valuable from json map
factory
Valuable.glass(String title, String value)
Valuable.pending(String title)

Properties

hashCode int
The hash code for this object.
no setteroverride
isPending bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
final
value String
final

Methods

copyWith() Valuable
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.
override

Static Methods

fromList(List? list, {String title = 'name', String value = 'id'}) ValuableList
Get list of valuables from a dynamic list