PQBottomSheetAction<T>.normal constructor
PQBottomSheetAction<T>.normal (
- String? text, {
- Color? color = Colors.transparent,
- Color? textColor = const Color(0xFF666666),
- double? fontSize,
- FontWeight? fontWeight = FontWeight.normal,
- ActionTap? onTap,
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
- EdgeInsetsGeometry? margin = const EdgeInsets.only(),
- bool autoPop = true,
- Color? dividerLineColor,
- int? maxLines,
- T? result(
- PQBottomSheetAction model
Implementation
factory PQBottomSheetAction.normal(String? text,
{Color? color = Colors.transparent,
Color? textColor = const Color(0xFF666666),
double? fontSize,
FontWeight? fontWeight = FontWeight.normal,
ActionTap? onTap,
EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
EdgeInsetsGeometry? margin = const EdgeInsets.only(),
bool autoPop = true,
Color? dividerLineColor,
int? maxLines,
T? Function(PQBottomSheetAction model)? result}) =>
PQBottomSheetAction._(text,
color: color,
textColor: textColor,
fontWeight: fontWeight,
fontSize: fontSize,
onTap: onTap,
padding: padding,
margin: margin,
autoPop: autoPop,
dividerLineColor: dividerLineColor ?? Color(0xFFF0F0F0),
maxLines: maxLines,
result: result);