WordedToggle constructor
const
WordedToggle({
- Key? key,
- ValueNotifier<
bool> ? controller, - Color borderColor = const Color(0xFFE0E0E0),
- Color activeColor = const Color(0xFF4CAF50),
- Color inactiveColor = const Color(0xFF9E9E9E),
- Widget? activeChild,
- Widget? inactiveChild,
- ImageProvider<
Object> ? activeImage, - ImageProvider<
Object> ? inactiveImage, - Color activeThumbColor = const Color(0xFFFAFAFA),
- Color inactiveThumbColor = const Color(0xFFFAFAFA),
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(15)),
- double width = 50.0,
- double height = 30.0,
- bool enabled = true,
- double disabledOpacity = 0.5,
- Widget? thumb,
- bool initialValue = false,
- ValueChanged? onChanged,
Implementation
const WordedToggle({
super.key,
this.controller,
this.borderColor = const Color(0xFFE0E0E0),
this.activeColor = const Color(0xFF4CAF50),
this.inactiveColor = const Color(0xFF9E9E9E),
this.activeChild,
this.inactiveChild,
this.activeImage,
this.inactiveImage,
this.activeThumbColor = const Color(0xFFFAFAFA),
this.inactiveThumbColor = const Color(0xFFFAFAFA),
this.borderRadius = const BorderRadius.all(Radius.circular(15)),
this.width = 50.0,
this.height = 30.0,
this.enabled = true,
this.disabledOpacity = 0.5,
this.thumb,
this.initialValue = false,
this.onChanged,
});