SemanticsWrapper.toggle constructor
SemanticsWrapper.toggle({})
Wrapper that governs a toggle
Implementation
SemanticsWrapper.toggle(
{required this.isEnabled,
required this.isToggled,
required this.isMutuallyExclusive})
: assert(isEnabled != null &&
isToggled != null &&
isMutuallyExclusive != null),
super(
enabled: isEnabled,
hint: "Enables and disables toggle",
toggled: isToggled,
focusable: isEnabled,
inMutuallyExclusiveGroup: isMutuallyExclusive);