useRounded method

void useRounded({
  1. double base = 0,
  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 useRounded({
  double base = 0,
  double? disabled,
  double? dragged,
  double? error,
  double? focused,
  double? hovered,
  double? pressed,
  double? scrolledUnder,
  double? selected,
}) =>
    shapeState = NikuState(
      disabled: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(disabled ?? base),
      ),
      dragged: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(dragged ?? base),
      ),
      error: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(error ?? base),
      ),
      focused: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(focused ?? base),
      ),
      hovered: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(hovered ?? base),
      ),
      pressed: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(pressed ?? base),
      ),
      scrolledUnder: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(scrolledUnder ?? base),
      ),
      selected: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(selected ?? base),
      ),
      base: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(base),
      ),
    );