CallWhen<T> extension

on
  • T? Function()

Methods

callWhen({required bool predicate}) → T?

Available on T? Function(), provided by the CallWhen extension

Calls the function and returns its result only if the predicate is true.