Resource constructor
Resource({
- required ResourceType type,
- required String id,
- Bridge? bridge,
Creates a Resource object.
Implementation
Resource({
required this.type,
required this.id,
this.bridge,
}) : assert(id.isEmpty || Validators.isValidId(id),
'"$id" is not a valid `id`'),
_originalType = type;