guard<R> method
R?
guard<R>(
- R cb(
- T value
Implementation
R? guard<R>(R Function(T value) cb) {
if (this is T) return cb(this as T);
return null;
}
R? guard<R>(R Function(T value) cb) {
if (this is T) return cb(this as T);
return null;
}