getAsNullableMap method

AnyValueMap? getAsNullableMap(
  1. int index
)

Converts array element into an AnyValueMap or returns null if conversion is not possible.

  • index an index of element to get. Returns AnyValueMap value of the element or null if conversion is not supported.

See AnyValueMap See AnyValueMap.fromValue

Implementation

AnyValueMap? getAsNullableMap(int index) {
  var value = AnyValueMap.fromValue(_values[index]);
  return value.values.isNotEmpty ? value : null;
}