PQBottomSheetAction<T>.cancel constructor
PQBottomSheetAction<T>.cancel ({
- 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),
- bool autoPop = true,
- Color? dividerLineColor,
- int? maxLines,
- T? result(
- PQBottomSheetAction model
Implementation
factory PQBottomSheetAction.cancel(
{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),
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,
autoPop: autoPop,
dividerLineColor: dividerLineColor ?? Colors.transparent,
maxLines: maxLines,
result: result);