takeIf method
Implementation
T? takeIf(bool Function(T data) operand){
if(operand(this)) {
return this;
} else {
return null;
}
}
T? takeIf(bool Function(T data) operand){
if(operand(this)) {
return this;
} else {
return null;
}
}