Btn.init constructor

Btn.init({
  1. Key? key,
  2. EdgeInsetsGeometry? wrapperPadding,
  3. EdgeInsetsGeometry? padding,
  4. Size? minimumSize,
  5. ButtonStyle? buttonStyle,
  6. VoidCallback? onPressed,
  7. required int created,
  8. String? label,
  9. 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";