generateEventFile static method

String generateEventFile(
  1. String className,
  2. String bPath
)

Implementation

static String generateEventFile(String className, String bPath) {
  return '''
part of '$bPath';

@immutable
sealed class ${className}Event {}
''';
}