PQBottomSheetAction<T>.normal constructor

PQBottomSheetAction<T>.normal(
  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. EdgeInsetsGeometry? margin = const EdgeInsets.only(),
  9. bool autoPop = true,
  10. Color? dividerLineColor,
  11. int? maxLines,
  12. T? result(
    1. 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);