decodeDynamic static method

Future decodeDynamic(
  1. String? text
)

Implementation

static Future<dynamic> decodeDynamic(String? text) async {
  if (text == null) {
    return null;
  }
  if (kIsWeb) {
    return await _decode(text);
  }
  // for decode json in another thread
  // final result = await Computer().compute(_decode, param: text);
  final result = await _decode(text);
  return result;
  // return compute(_decode, text);
}