NButton constructor
NButton({
- Key? key,
- String type = "default",
- String size = "normal",
- String? text,
- double? width,
- double? height,
- dynamic color,
- Color? textColor,
- Widget? icon,
- bool block = false,
- bool plain = false,
- bool square = false,
- bool round = false,
- bool disabled = false,
- bool hairline = false,
- bool loading = false,
- EdgeInsets? padding,
- BorderRadius? borderRadius,
- dynamic onClick()?,
Implementation
NButton(
{Key? key,
this.type: "default",
this.size: "normal",
this.text,
this.width,
this.height,
this.color,
this.textColor,
this.icon,
this.block: false,
this.plain: false,
this.square: false,
this.round: false,
this.disabled: false,
this.hairline: false,
this.loading: false,
this.padding,
this.borderRadius,
this.onClick})
: assert(["mini", "small", "normal", "large"].indexOf(size) > -1,
"size must be mini, small, normal, or large"),
assert(
["default", "primary", "info", "danger", "warning"].indexOf(type) >
-1,
"type must be default, primary, info, danger or warning"),
super(key: key);