BaseToolbar constructor
BaseToolbar({
- String? leftIconType,
- dynamic leftIcon,
- Color? leftIconColor,
- Function? leftIconClick,
- dynamic rightIcon,
- Color? rightIconColor,
- String? rightIconType,
- Function? rightIconClick,
- String? title,
- String? rightText,
- Function? rightTextClick,
- String? leftText,
- Function? leftTextClick,
- Color backgroundColor = Colors.white,
- double toolbarHeight = 60,
- TextStyle? leftTextStyle,
- TextStyle? titleTextStyle,
- TextStyle? rightTextStyle,
- Widget? leftChild,
- Widget? centerChild,
- 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.");