UniformValue class
Configurable float uniform value with range constraints.
This model is typically serialized in JSON and used to drive UI controls.
Constructors
- UniformValue({required double defaultValue, required double min, required double max, required double value})
-
const
-
UniformValue.fromMap(Map<
String, dynamic> map) -
Parses a UniformValue from a loosely typed map.
factory
Properties
- defaultValue → double
-
Suggested initial value for a control surface.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- max → double
-
Maximum allowed value (inclusive).
final
- min → double
-
Minimum allowed value (inclusive).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → double
-
Current runtime value.
final
Methods
-
copyWith(
{double? defaultValue, double? min, double? max, double? value}) → UniformValue - Returns a validated copy with selective overrides.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this value object into a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override