getResource abstract method

T getResource(
  1. String key, {
  2. String? from,
})

Import a resource with a certain key, ignore those already imported

If from is provided, the handler will try to get a relative path

Otherwise, a absolute path is calculated from root

Implementation

T getResource(String key, {String? from});