isOfType method

bool isOfType(
  1. Type type
)

isOfType: Checks if the object is of the specified (runtimeType) type.

Implementation

bool isOfType(Type type) {
  var runtimeType = this.runtimeType;
  return runtimeType == type;
}