Chart class Null safety

This widget is in preview and the API is subject to change

Inheritance
Implemented types

Constructors

Chart({required ChartGrid grid, required List<Dataset> datasets, Widget? overlay, Widget? title, Widget? bottom, Widget? left, Widget? right})

Properties

bottom Widget?
final
box PdfRect?
The bounding box of this widget, calculated at layout time
read / write, inherited
datasets List<Dataset>
The list of dataset to display
final
grid ChartGrid
The Coordinate system that will layout the content
final
hashCode int
The hash code for this object. [...]
read-only, inherited
left Widget?
final
overlay Widget?
Legend for this chart
final
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title Widget?
final

Methods

debugPaint(Context context) → void
@protected, inherited
layout(Context context, BoxConstraints constraints, {bool parentUsesSize = false}) → void
First widget pass to calculate the children layout and bounding box
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
paint(Context context) → void
Draw itself and its children, according to the calculated box.offset
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

of(Context context) Chart