BankPortfolioPerformanceChart class
Time-series chart wrapper sitting on top of fl_chart.
Does not implement its own charting: wraps fl_chart's LineChart.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BankPortfolioPerformanceChart
Constructors
-
BankPortfolioPerformanceChart({required List<
BankChartDataPoint> dataPoints, Key? key, bool showGrid = true, Color? lineColor, BankChartTimeRange selectedRange = BankChartTimeRange.oneMonth, ValueChanged<BankChartTimeRange> ? onRangeChanged, double? height, double? lineWidth, Gradient? gradient, Color? gridColor, TextStyle? tooltipStyle, Color? accentColor, Map<BankChartTimeRange, String> ? rangeLabels, String emptyLabel = 'No data available', TextStyle? emptyLabelStyle, String? semanticLabel}) -
const
Properties
- accentColor → Color?
-
Overrides the selected range pill tint. Defaults to the theme
primary.
final
-
dataPoints
→ List<
BankChartDataPoint> -
final
- emptyLabel → String
-
Empty-state text. Defaults to 'No data available'.
final
- emptyLabelStyle → TextStyle?
-
Merged over the empty-state style (bodyMedium, onSurfaceVariant).
final
- gradient → Gradient?
-
Overrides the below-line fill. Defaults to a vertical fade of the
line colour from 24% opacity to transparent.
final
- gridColor → Color?
-
Overrides the horizontal grid line colour. Defaults to the theme
outline.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Overrides the chart height. Defaults to 200.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lineColor → Color?
-
final
- lineWidth → double?
-
Overrides the line thickness. Defaults to 2.
final
-
onRangeChanged
→ ValueChanged<
BankChartTimeRange> ? -
final
-
rangeLabels
→ Map<
BankChartTimeRange, String> ? -
Overrides the built-in range captions ('1D', '1W', ...); missing
entries fall back to the defaults.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedRange → BankChartTimeRange
-
final
- semanticLabel → String?
-
Wraps the chart in a Semantics node when provided; no semantics
node is added by default.
final
- showGrid → bool
-
final
- tooltipStyle → TextStyle?
-
Merged over the touch tooltip text style (labelSmall, white).
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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