cast<T extends AbstractPoint> method
T
cast<T extends AbstractPoint>()
Implementation
T cast<T extends AbstractPoint>() {
if (this is! T) {
throw ArgumentException("Cannot cast $runtimeType to $T");
}
return this as T;
}