TrinaAggregateColumnFooter class

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

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

TrinaColumn(
  title: 'column',
  field: 'column',
  type: TrinaColumnType.number(format: '#,###.###'),
  textAlign: TrinaColumnTextAlign.right,
  footerRenderer: (rendererContext) {
    return TrinaAggregateColumnFooter(
      rendererContext: rendererContext,
      type: TrinaAggregateColumnType.sum,
      format: 'Sum : #,###.###',
      alignment: Alignment.center,
    );
  },
),

TrinaAggregateColumnFooter 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

TrinaAggregateColumnFooter.new({required TrinaColumnFooterRendererContext rendererContext, required TrinaAggregateColumnType type, TrinaAggregateColumnIterateRowType iterateRowType = TrinaAggregateColumnIterateRowType.filteredAndPaginated, TrinaAggregateColumnGroupedRowType groupedRowType = TrinaAggregateColumnGroupedRowType.all, TrinaAggregateFilter? filter, String format = '#,###', String? locale, List<InlineSpan> titleSpanBuilder(String)?, AlignmentGeometry? alignment, EdgeInsets? padding, bool formatAsCurrency = false, Key? key})
const

Properties

alignment AlignmentGeometry?
final
filter TrinaAggregateFilter?
Returns whether to be filtered according to the value of TrinaCell.value.
final
format String
Set the format of aggregated result values.
final
formatAsCurrency bool
final
groupedRowType TrinaAggregateColumnGroupedRowType
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 TrinaAggregateColumnIterateRowType
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 TrinaColumnFooterRendererContext
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 TrinaAggregateColumnType
Determine the aggregate type.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() TrinaAggregateColumnFooterState
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