registerSeeder function
Registers the seeder class className (from importPath, relative to
lib/) under name in lib/bootstrap/seeders.dart, creating the file
when it doesn't exist.
Implementation
Future<LiveRegistration> registerSeeder({
required String name,
required String className,
required String importPath,
}) => _register(
path: seedersRegistryPath,
template: seedersRegistryTemplate,
configName: 'seeders',
label: 'Seeder',
importPath: importPath,
insert: (String file) =>
insertSeederRegistration(file, name: name, className: className),
hasMap: (String file) =>
hasRegistryMap(file, variable: 'seeders', type: 'Seeder Function()'),
);