知识点1:final ValueChanged<bool> onChanged;回调函数应用,定义了一个参数为bool类型的回调函数。知识点2:const TapboxB({ Key? key, this.active = false, required this.onChanged,}) : super(key: key);
https://blog.youkuaiyun.com/wuqingsen1/article/details/121694039
知识点1:final ValueChanged<bool> onChanged;回调函数应用,定义了一个参数为bool类型的回调函数。知识点2:const TapboxB({ Key? key, this.active = false, required this.onChanged,}) : super(key: key);
https://blog.youkuaiyun.com/wuqingsen1/article/details/121694039