示例:
typedef filterItemValueChangeCallback = void Function(String dictRequest);
其中
filterItemValueChangeCallback 為block名稱, String dictRequest為傳遞的參數(shù)
在類中調(diào)用的時(shí)候就可以用
AppBar(
filterItemValueChangeCallback: (String _) {
},
)