Config constructor
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.',
);
}
}