onLoad abstract method

Future<Map?> onLoad(
  1. String? path,
  2. FairDecoder decoder, {
  3. bool cache = true,
  4. Map<String, String>? h,
})

Load resource data into json object; The path can be either assets key or http url, both should stands for valid json resource. The cache argument indicate cache implementation. The h contains framework relative headers.

Implementation

Future<Map?> onLoad(String? path, FairDecoder decoder,
    {bool cache = true, Map<String, String>? h});