ToolBarTextActionWidget constructor

const ToolBarTextActionWidget({
  1. Key? key,
  2. double? width,
  3. Color? color,
  4. required String text,
  5. Color? textColor,
  6. required VoidCallback? onPressed,
})

Implementation

const ToolBarTextActionWidget({
  Key? key,
  this.width, // 宽度(高度固定32)
  this.color,
  required this.text,
  this.textColor,
  required this.onPressed,
}) : super(key: key);