Btn.init constructor
Btn.init({
- Key? key,
- EdgeInsetsGeometry? wrapperPadding,
- EdgeInsetsGeometry? padding,
- Size? minimumSize,
- ButtonStyle? buttonStyle,
- VoidCallback? onPressed,
- required int created,
- String? label,
- Widget? child,
Implementation
Btn.init({
super.key,
EdgeInsetsGeometry? wrapperPadding,
EdgeInsetsGeometry? padding,
this.minimumSize,
this.buttonStyle,
VoidCallback? onPressed,
required this.created,
String? label,
this.child,
}) : wrapperPadding = wrapperPadding ?? EdgeInsets.zero,
padding = padding ??
const EdgeInsets.symmetric(
horizontal: 50,
vertical: 15,
),
onPressed = onPressed ??
(() {
Stra.log(
"$created->Btn.onPressed@${Stra.now()}",
);
}),
label = label ?? "Label";