register method

bool register(
  1. String id, {
  2. required ProviderCommandFactory factory,
  3. String description = '',
  4. bool overrideExisting = true,
})

Implementation

bool register(
  String id, {
  required ProviderCommandFactory factory,
  String description = '',
  bool overrideExisting = true,
}) {
  return registerEntry(
    id,
    ProviderCommandRegistration(
      id: id,
      factory: factory,
      description: description,
    ),
    overrideExisting: overrideExisting,
  );
}