Resource constructor

const Resource({
  1. String? name,
})

Injects the bean named name; without it, the bean named like the field or setter, else a bean of its type.

Implementation

const Resource({this.name});