NeumorphicSwitch constructor

const NeumorphicSwitch({
  1. double borderRadius = 0,
  2. EdgeInsets padding = emptyPadding,
  3. EdgeInsets margin = emptyPadding,
  4. ValueChanged<bool>? onChanged,
  5. 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});