ifPresent method
void
ifPresent(
- void ifPresent(
- T value
Executes a function if the Optional value is present.
Implementation
void ifPresent(void Function(T value) ifPresent) {
if (isPresent) {
ifPresent(_value!);
}
}