ResourceContent constructor

ResourceContent(
  1. Resource? resource, [
  2. String? _content
])

Implementation

ResourceContent(this.resource, [this._content]) {
  if (resource == null && _content == null) {
    throw StateError('Invalid arguments: resource and content are null');
  }
}