FlareCheckbox constructor

const FlareCheckbox({
  1. Key? key,
  2. required dynamic onChanged(
    1. bool
    ),
  3. required bool? value,
  4. required String animation,
  5. bool tristate = false,
  6. double? width,
  7. double? height,
  8. String animationOn = _onAnimationName,
  9. String animationOff = _offAnimationName,
  10. String animationUnknown = _unknownAnimationName,
})

Implementation

const FlareCheckbox({
  Key? key,
  required this.onChanged,
  required bool? value,
  required this.animation,
  this.tristate = false,
  this.width,
  this.height,
  this.animationOn = _onAnimationName,
  this.animationOff = _offAnimationName,
  this.animationUnknown = _unknownAnimationName,
})  : this.value = value ?? (tristate ? null : false),
      super(key: key);