BaseToolbar constructor

BaseToolbar({
  1. String? leftIconType,
  2. dynamic leftIcon,
  3. Color? leftIconColor,
  4. Function? leftIconClick,
  5. dynamic rightIcon,
  6. Color? rightIconColor,
  7. String? rightIconType,
  8. Function? rightIconClick,
  9. String? title,
  10. String? rightText,
  11. Function? rightTextClick,
  12. String? leftText,
  13. Function? leftTextClick,
  14. Color backgroundColor = Colors.white,
  15. double toolbarHeight = 60,
  16. TextStyle? leftTextStyle,
  17. TextStyle? titleTextStyle,
  18. TextStyle? rightTextStyle,
  19. Widget? leftChild,
  20. Widget? centerChild,
  21. Widget? rightChild,
})

Implementation

BaseToolbar({
  this.leftIconType,
  this.leftIcon,
  this.leftIconColor,
  this.leftIconClick,
  this.rightIcon,
  this.rightIconColor,
  this.rightIconType,
  this.rightIconClick,
  this.title,
  this.rightText,
  this.rightTextClick,
  this.leftText,
  this.leftTextClick,
  this.backgroundColor = Colors.white,
  this.toolbarHeight = 60,
  this.leftTextStyle,
  this.titleTextStyle,
  this.rightTextStyle,
  this.leftChild,
  this.centerChild,
  this.rightChild,
})  : assert(toolbarHeight > 50),
      assert(
          leftIcon != null
              ? leftIcon is String || leftIcon is IconData
              : true,
          "Please provide icon type in string(assets or local path) or IconData."),
      assert(
          rightIcon != null
              ? rightIcon is String || rightIcon is IconData
              : true,
          "Please provide icon type in string(assets or local path) or IconData.");