AdTextView constructor
AdTextView({
- String viewType = 'text_view',
- EdgeInsets? padding,
- EdgeInsets? margin,
- AdDecoration? decoration,
- double? width,
- double? height,
- double? elevation,
- Color? elevationColor,
- TextStyle? style,
- int? minLines,
- int? maxLines,
- String? text,
Implementation
AdTextView({
String viewType = 'text_view',
EdgeInsets? padding,
EdgeInsets? margin,
AdDecoration? decoration,
double? width,
double? height,
double? elevation,
Color? elevationColor,
// text
this.style,
this.minLines,
this.maxLines,
this.text,
}) : assert(
['text_view', 'button_view'].contains(viewType),
'This view must be a text view or a button view',
),
super(
viewType: viewType,
padding: padding,
margin: margin,
decoration: decoration,
width: width ?? MATCH_PARENT,
height: height ?? WRAP_CONTENT,
elevation: elevation,
elevationColor: elevationColor,
);