blocEventTemplate function

String blocEventTemplate(
  1. String feature
)

Implementation

String blocEventTemplate(String feature) => '''
part of '${feature}_bloc.dart';

abstract class ${_cap(feature)}Event extends Equatable {
  const ${_cap(feature)}Event();

  @override
  List<Object?> get props => <Object?>[];
}

class ${_cap(feature)}Fetched extends ${_cap(feature)}Event {
  const ${_cap(feature)}Fetched({
    this.queryParam,
    this.showLoader = true,
  });

  final Fetch${_cap(feature)}Query? queryParam;
  final bool showLoader;

  @override
  List<Object?> get props => <Object?>[queryParam, showLoader];
}
''';