tryDig<T> method

T? tryDig<T>(
  1. List keys
)

Try get value across nested objects/list with given keys. It returns null if failed.

Implementation

T? tryDig<T>(List keys) {
  try {
    return dig<T>(keys);
  } on JsonTypeException {
    return null;
  }
}