1、通过typedef
typedef Predicate<E> = bool Function(E element);
typedef OutputFunction = void Function(String msg);
otherCall(Predicate<E> predicate,String s);
anotherCall(OutputFunction outputFuction, float c);
注意:Predicate<E> 和 OutputFunction都是形式参数类型
2、直接使用
invoke(Future<void> Function() fuction, int a, int b);
注意:Future<void> Function() 是形式参数类型(即函数类型),fuction是形式参数名