iOS method

  1. @override
Widget iOS(
  1. BuildContext context, [
  2. CoreIOSProperty? property
])

Implementation

@override
Widget iOS(BuildContext context, [CoreIOSProperty? property]) {
  return CupertinoCheckbox(
    side: side,
    shape: shape,
    value: value,
    tristate: isTriState,
    focusColor: focusColor,
    autofocus: autofocus,
    focusNode: focusNode,
    checkColor: checkColor,
    activeColor: activeColor,
    fillColor: WidgetStatePropertyAll(inactiveColor),
    onChanged: isEnabled ? (value) => onChanged?.call(value == true) : null,
  ).margeWith(
    _buildLabelWidget(CupertinoTheme.of(context).textTheme.navTitleTextStyle),
    0.0,
  );
}