ArchGenConfig constructor

ArchGenConfig({
  1. required String stateManagement,
})

Whether to use Equatable package with BLoC Creates a new configuration instance.

Implementation

/// Creates a new configuration instance.
ArchGenConfig({required this.stateManagement}) {
  if (stateManagement != 'bloc' &&
      stateManagement != 'riverpod' &&
      stateManagement != 'getx' &&
      stateManagement != 'cubit') {
    throw ArgumentError(
      'stateManagement must be "bloc", "riverpod", "getx", or "cubit", got "$stateManagement"',
    );
  }
}