NeumorphicSwitch constructor
const
NeumorphicSwitch({
- double borderRadius = 0,
- EdgeInsets padding = emptyPadding,
- EdgeInsets margin = emptyPadding,
- ValueChanged<
bool> ? onChanged, - Key? key,
A custom switch widget that uses a Neumorphic design.
This widget is used to create a switch with a Neumorphic appearance, providing a modern and visually appealing toggle switch.
The NeumorphicSwitch
is a constant constructor, meaning its
properties must be compile-time constants.
Implementation
const NeumorphicSwitch(
{this.borderRadius = 0,
this.padding = emptyPadding,
this.margin = emptyPadding,
this.onChanged,
super.key});