PQBottomSheetAction<T>.cancel constructor

PQBottomSheetAction<T>.cancel({
  1. String? text = "取消",
  2. Color? color = Colors.transparent,
  3. Color? textColor = const Color(0xFF666666),
  4. double? fontSize,
  5. FontWeight? fontWeight = FontWeight.normal,
  6. ActionTap? onTap,
  7. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
  8. bool autoPop = true,
  9. Color? dividerLineColor,
  10. int? maxLines,
  11. T? result(
    1. 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);