AdButtonView constructor

AdButtonView({
  1. EdgeInsets? padding,
  2. EdgeInsets? margin,
  3. double? width,
  4. double? height,
  5. AdDecoration? decoration,
  6. double? elevation,
  7. Color? elevationColor,
  8. Color? pressColor,
  9. int? minLines,
  10. int? maxLines,
  11. TextStyle? textStyle,
  12. String? text,
})

Implementation

AdButtonView({
  EdgeInsets? padding,
  EdgeInsets? margin,
  double? width,
  double? height,
  AdDecoration? decoration,
  double? elevation,
  Color? elevationColor,
  this.pressColor,
  // text
  int? minLines,
  int? maxLines,
  TextStyle? textStyle,
  String? text,
}) : super(
        viewType: 'button_view',
        padding: padding,
        margin: margin,
        decoration: decoration,
        width: width ?? MATCH_PARENT,
        height: height ?? WRAP_CONTENT,
        elevation: elevation,
        elevationColor: elevationColor,
        // text
        maxLines: maxLines,
        minLines: minLines,
        style: textStyle ??
            TextStyle(
              fontSize: 14,
              color: Colors.black,
              // fontWeight: FontWeight.bold,
            ),
        text: text,
      );