getGreatGrandchild method
- @useResult
Returns the nested value at childKey → grandChildKey →
greatGrandChildKey, or null if any key is missing.
Implementation
@useResult
dynamic getGreatGrandchild({
required String childKey,
required String grandChildKey,
required String greatGrandChildKey,
}) {
final dynamic grandChild = getGrandchild(childKey, grandChildKey);
if (grandChild is Map<dynamic, dynamic>) {
return grandChild[greatGrandChildKey];
}
return null;
}