TuneAdjustmentItem class
A class representing an adjustable tune item in the editor.
Each TuneAdjustmentItem contains properties like a label, icon, range (min, max), and a function to convert the adjustment value to a matrix transformation.
Constructors
-
TuneAdjustmentItem.new({required String label, required IconData icon, required String id, required double min, required double max, required List<
double> toMatrix(double value), int divisions = 200, double labelMultiplier = 100}) -
Creates a TuneAdjustmentItem with required parameters for adjustment.
const
Properties
- divisions → int
-
The number of discrete divisions available for adjustment within the
range.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
The icon representing the adjustment item.
final
- id → String
-
The unique identifier for the adjustment item.
final
- label → String
-
The display label for the adjustment item.
final
- labelMultiplier → double
-
A multiplier applied to the label when displaying the adjustment value.
final
- max → double
-
The maximum value of the adjustment range.
final
- min → double
-
The minimum value of the adjustment range.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toMatrix
→ List<
double> Function(double value) -
A function that converts the adjustment value to a matrix transformation.
final
Methods
-
copyWith(
{String? label, IconData? icon, String? id, double? min, double? max, double? labelMultiplier, double? value, int? divisions, List< double> toMatrix(double value)?}) → TuneAdjustmentItem - Creates a copy of this TuneAdjustmentItem object with the given fields replaced with new values.
-
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