isOfType: Checks if the object is of the specified (runtimeType) type.
bool isOfType(Type type) { var runtimeType = this.runtimeType; return runtimeType == type; }