Flutter的原生方法宏(如VoidCallback)

Flutter的原生方法宏有好几个,直接可用,无需再次定义。下面列举几个。

typedef VoidCallback = void Function();


typedef ValueChanged = void Function(T value);


typedef ValueSetter = void Function(T value);


typedef IterableFilter = Iterable Function(Iterable input);


typedef AsyncCallback = Future Function();


typedef AsyncValueSetter = Future Function(T value);


typedef AsyncValueGetter = Future Function();

你可能感兴趣的:(IT_前端开发_Flutter,flutter,android,ios)