covariant method

  1. @override
bool covariant(
  1. dynamic x
)
override

Assert that JavaScript's x is the proper type represented by this Type.

Implementation

@override
bool covariant(x) {
  return x is List &&
      x.length == 2 &&
      x[0] != null &&
      x[0] is PrincipalId &&
      x[1] is String;
}