isSupportedIdentity function

bool isSupportedIdentity(
  1. dynamic identity
)

Return whether type of identity is supported or not

Implementation

bool isSupportedIdentity(dynamic identity) {
  return identity is String || identity is Map<String, dynamic>;
}