SuraAsyncIconButton constructor
const
SuraAsyncIconButton({
- Key? key,
- required FutureOrCallBack? onTap,
- required Widget icon,
- EdgeInsets margin = const EdgeInsets.all(0),
- EdgeInsets padding = const EdgeInsets.all(8),
- double borderRadius = 8,
- Color backgroundColor = Colors.transparent,
- double elevation = 0.0,
- BorderSide? borderSide,
- Widget? badge,
- Widget? loadingWidget,
An IconButton with respectively small margin and shape
Implementation
const SuraAsyncIconButton({
Key? key,
required this.onTap,
required this.icon,
this.margin = const EdgeInsets.all(0),
this.padding = const EdgeInsets.all(8),
this.borderRadius = 8,
this.backgroundColor = Colors.transparent,
this.elevation = 0.0,
this.borderSide,
this.badge,
this.loadingWidget,
}) : super(key: key);