isFunction function

bool isFunction(
  1. dynamic fn
)

Implementation

bool isFunction(dynamic fn) {
  if (fn != null) {
    return fn is Function;
  } else {
    return false;
  }
}