useRounded method
void
useRounded({})
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),
),
);