unwrapOrNull<T> method
T?
unwrapOrNull<T>()
Implementation
T? unwrapOrNull<T>() {
if (this is T) {
return this as T;
}
return null;
}
T? unwrapOrNull<T>() {
if (this is T) {
return this as T;
}
return null;
}