Config constructor

Config({
  1. bool? bloc,
  2. bool? riverpod,
})

Implementation

Config({this.bloc, this.riverpod}) {
  if (bloc == null && riverpod == null) {
    return;
  }
  if (!(bloc! ^ riverpod!)) {
    throw ArgumentError(
      'Exactly one of "bloc" or "riverpod" must be true in the config section.',
    );
  }
}