optBundle method

Bundle? optBundle(
  1. String key
)

Gets the value for the given key, returns null if null or wrong type

Implementation

Bundle? optBundle(String key) {
  final value = _internalMap[key];
  if (value is Bundle) return value;
  if (value is Map<Object?, Object?>) return Bundle.from(value);

  return null;
}