doFunc<T> function

T doFunc<T>(
  1. T func()
)

执行一段回调

Implementation

T doFunc<T>(T Function() func) {
  return func();
}