Search constructor
Search({
- Key? key,
- String shape = "square",
- Color? background,
- int maxLength = 100,
- String placeholder = "请输入搜索关键词",
- bool clearable = true,
- bool showAction = false,
- String actionText = "取消",
- bool disabled = false,
- bool readonly = false,
- IconData leftIcon = Icons.search,
- IconData? rightIcon,
- Widget? left,
- Widget? right,
- dynamic onClickLeft()?,
- dynamic onClickRight()?,
- dynamic onCancel()?,
- dynamic onSubmitted(
- String val
Implementation
Search(
{Key? key,
this.shape: "square",
this.background,
this.maxLength: 100,
this.placeholder: "请输入搜索关键词",
this.clearable: true,
this.showAction: false,
this.actionText: "取消",
this.disabled: false,
this.readonly: false,
this.leftIcon: Icons.search,
this.rightIcon,
this.left,
this.right,
this.onClickLeft,
this.onClickRight,
this.onCancel,
this.onSubmitted})
: super(key: key);