useP method

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

Implementation

void useP({
  double? base,
  double? disabled,
  double? dragged,
  double? error,
  double? focused,
  double? hovered,
  double? pressed,
  double? scrolledUnder,
  double? selected,
}) =>
    paddingState = NikuState(
      disabled: disabled != null ? EdgeInsets.all(disabled) : null,
      dragged: dragged != null ? EdgeInsets.all(dragged) : null,
      error: error != null ? EdgeInsets.all(error) : null,
      focused: focused != null ? EdgeInsets.all(focused) : null,
      hovered: hovered != null ? EdgeInsets.all(hovered) : null,
      pressed: pressed != null ? EdgeInsets.all(pressed) : null,
      scrolledUnder:
          scrolledUnder != null ? EdgeInsets.all(scrolledUnder) : null,
      selected: selected != null ? EdgeInsets.all(selected) : null,
      base: base != null ? EdgeInsets.all(base) : null,
    );