Resource constructor

Resource({
  1. required ResourceType type,
  2. required String id,
  3. 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;