BoolColumn<TItem extends Object> constructor

BoolColumn<TItem extends Object>({
  1. required String fieldName,
  2. ColumnHeader? header,
  3. Widget? customFieldWidget(
    1. TItem row
    )?,
  4. required bool? value(
    1. TItem row
    ),
  5. BoolFilterRules<TItem>? filterRules,
  6. OrderDirections sortDirection = OrderDirections.notSet,
  7. String trueText = "true",
  8. String falseText = "false",
  9. double? width,
  10. double? minWidth,
  11. double? maxWidth,
  12. int? xlCols,
  13. int? largeCols,
  14. int? mediumCols,
  15. int? smallCols,
  16. int? xsCols,
  17. TextStyle? textStyle,
  18. Color? backgroundColor,
  19. Color? foregroundColor,
  20. Color? accentColor,
  21. AlignmentGeometry alignment = Alignment.centerLeft,
})

Implementation

BoolColumn({
  required String fieldName,
  ColumnHeader? header,
  Widget? Function(TItem row)? customFieldWidget,
  required bool? Function(TItem row) value,
  BoolFilterRules<TItem>? filterRules,
  OrderDirections sortDirection = OrderDirections.notSet,
  String trueText = "true",
  String falseText = "false",
  double? width,
  double? minWidth,
  double? maxWidth,
  int? xlCols,
  int? largeCols,
  int? mediumCols,
  int? smallCols,
  int? xsCols,
  TextStyle? textStyle,
  Color? backgroundColor,
  Color? foregroundColor,
  Color? accentColor,
  AlignmentGeometry alignment = Alignment.centerLeft,
}) : super(
        fieldName: fieldName,
        value: value,
        accentColor: accentColor,
        alignment: alignment,
        backgroundColor: backgroundColor,
        customFieldWidget: customFieldWidget,
        foregroundColor: foregroundColor,
        format: "$trueText|$falseText",
        header: header ?? ColumnHeader(),
        largeCols: largeCols,
        maxWidth: maxWidth,
        mediumCols: mediumCols,
        minWidth: minWidth,
        smallCols: smallCols,
        textStyle: textStyle,
        width: width,
        xlCols: xlCols,
        xsCols: xsCols,
        filterRules: filterRules ?? BoolFilterRules<TItem>(),
        sortDirection: sortDirection,
      );