PlutoAggregateColumnFooter class

Widget for outputting the sum, average, minimum, and maximum values of all values in a column.

Example) PlutoColumn.footerRenderer Implement column footer as return value of callback

PlutoColumn(
  title: 'column',
  field: 'column',
  type: PlutoColumnType.number(format: '#,###.###'),
  textAlign: PlutoColumnTextAlign.right,
  footerRenderer: (rendererContext) {
    return PlutoAggregateColumnFooter(
      rendererContext: rendererContext,
      type: PlutoAggregateColumnType.sum,
      format: 'Sum : #,###.###',
      alignment: Alignment.center,
    );
  },
),

PlutoAggregateColumnFooter You can also return a Widget you wrote yourself instead of a widget. However, you must implement the process of updating according to the value change yourself.

Inheritance

Constructors

PlutoAggregateColumnFooter({required PlutoColumnFooterRendererContext rendererContext, required PlutoAggregateColumnType type, PlutoAggregateColumnIterateRowType iterateRowType = PlutoAggregateColumnIterateRowType.filteredAndPaginated, PlutoAggregateColumnGroupedRowType groupedRowType = PlutoAggregateColumnGroupedRowType.all, PlutoAggregateFilter? filter, String format = '#,###', String? locale, List<InlineSpan> titleSpanBuilder(String)?, AlignmentGeometry? alignment, EdgeInsets? padding, bool formatAsCurrency = false, Key? key})
const

Properties

alignment → AlignmentGeometry?
final
filter → PlutoAggregateFilter?
Returns whether to be filtered according to the value of PlutoCell.value.
final
format → String
Set the format of aggregated result values.
final
formatAsCurrency → bool
final
groupedRowType → PlutoAggregateColumnGroupedRowType
When grouping row is applied, set the condition of row to be aggregated.
final
hashCode → int
The hash code for this object.
no setterinherited
iterateRowType → PlutoAggregateColumnIterateRowType
Determine the condition of the rows to be included in the aggregation.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale → String?
Setting the locale of the resulting value.
final
padding → EdgeInsets?
final
rendererContext → PlutoColumnFooterRendererContext
Contains information needed to implement the widget.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
titleSpanBuilder → List<InlineSpan> Function(String)?
You can customize the resulting values.
final
type → PlutoAggregateColumnType
Determine the aggregate type.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → PlutoAggregateColumnFooterState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited