NewResource constructor

NewResource(
  1. String type, [
  2. String? id
])

Implementation

NewResource(this.type, [this.id]) {
  ArgumentError.checkNotNull(type);
}