update method

void update({
  1. T? base,
  2. T? disabled,
  3. T? dragged,
  4. T? error,
  5. T? focused,
  6. T? hovered,
  7. T? pressed,
  8. T? selected,
})

Implementation

void update({
  T? base,
  T? disabled,
  T? dragged,
  T? error,
  T? focused,
  T? hovered,
  T? pressed,
  T? selected,
}) {
  this.base = base ?? this.base;
  this.disabled = disabled ?? this.disabled;
  this.dragged = dragged ?? this.dragged;
  this.error = error ?? this.error;
  this.focused = focused ?? this.focused;
  this.hovered = hovered ?? this.hovered;
  this.pressed = selected ?? this.pressed;
  this.selected = selected ?? this.selected;

  this.init = false;
}