service top-level constant

List<String> const service

Implementation

const service = [
  'class {name}Service {',
  '  factory {name}Service.getInstance() => _instance;',
  '  const {name}Service._();',
  '  static const _instance = {name}Service._();',
  '}'
];