copyWith method

MultipleChoiceTheme copyWith({
  1. ValueGetter<bool?>? allowUnselect,
})

Returns a copy of this theme with the given fields replaced by the non-null parameters.

Implementation

MultipleChoiceTheme copyWith({ValueGetter<bool?>? allowUnselect}) {
  return MultipleChoiceTheme(
    allowUnselect:
        allowUnselect == null ? this.allowUnselect : allowUnselect(),
  );
}