Toggle constructor

const Toggle({
  1. Key? key,
  2. required ToggleModel model,
  3. required Future<bool> onValueChanged(
    1. String,
    2. dynamic
    )?,
  4. Widget dateBuilder(
    1. int,
    2. String
    )?,
})

Implementation

const Toggle({
  Key? key,
  required ToggleModel model,
  required Future<bool> Function(String, dynamic)? onValueChanged,
  Widget Function(int, String)? dateBuilder,
}) : _dateBuilder = dateBuilder, _onValueChanged = onValueChanged, _model = model, super(key: key);