deepGet function

dynamic deepGet(
  1. Map? map,
  2. String path, {
  3. String separator = '.',
})

Safely retrieves and converts a value from a nested data structure using a dot-separated path.

This is a convenience wrapper around deepGetFromSegments.

Implementation

dynamic deepGet(
  Map<dynamic, dynamic>? map,
  String path, {
  String separator = '.',
}) {
  return deepGetFromSegments(map, path.split(separator));
}