Search constructor

Search({
  1. Key? key,
  2. String shape = "square",
  3. Color? background,
  4. int maxLength = 100,
  5. String placeholder = "请输入搜索关键词",
  6. bool clearable = true,
  7. bool showAction = false,
  8. String actionText = "取消",
  9. bool disabled = false,
  10. bool readonly = false,
  11. IconData leftIcon = Icons.search,
  12. IconData? rightIcon,
  13. Widget? left,
  14. Widget? right,
  15. dynamic onClickLeft()?,
  16. dynamic onClickRight()?,
  17. dynamic onCancel()?,
  18. dynamic onSubmitted(
    1. 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);