Utils class abstract

Constructors

Utils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

DEG2RAD double
getter/setter pair
FDEG2RAD double
getter/setter pair
FLOAT_EPSILON double
getter/setter pair
mDefaultValueFormatter ValueFormatter
getter/setter pair

Static Methods

calcTextHeight(TextPainter p, String demoText) int
calcTextSize1(TextPainter p, String demoText) FSize
calcTextSize2(TextPainter p, String demoText, FSize outputFSize) → void
calcTextSize3(TextPainter paint, String demoText) FSize
calcTextSize4(TextPainter paint, String demoText, FSize outputFSize) → void
calcTextWidth(TextPainter p, String? demoText) int
convertDpToPixel(double dp) double
drawRadarXAxisValue(Canvas c, String text, double? x, double y, TextPainter paint, MPPointF anchor, double angleDegrees, XAxisPosition position) → void
drawXAxisValue(Canvas c, String text, double? x, double y, TextPainter paint, MPPointF anchor, double angleDegrees, XAxisPosition position) → void
drawXAxisValueHorizontal(Canvas c, String text, double x, double? y, TextPainter paint, MPPointF anchor, double angleDegrees, XAxisPosition position) → void
getDecimals(double number) int
getDefaultValueFormatter() ValueFormatter
getLineHeight1(TextPainter paint) double
getLineHeight2(TextPainter paint) double
getLineSpacing1(TextPainter paint) double
getLineSpacing2(TextPainter paint) double
getNormalizedAngle(double angle) double
getPosition(MPPointF center, double dist, double angle, MPPointF outputPoint) → void
getSizeOfRotatedRectangleByDegrees(double rectangleWidth, double rectangleHeight, double degrees) FSize
getSizeOfRotatedRectangleByRadians1(FSize rectangleSize, double radians) FSize
getSizeOfRotatedRectangleByRadians2(double rectangleWidth, double rectangleHeight, double radians) FSize
local2Chart(Controller<ChartPainter<ChartData<IDataSet<Entry>>?>> controller, double x, double y, {bool inverted = false}) MPPointF
nextUp(double d) double
optimizeScale(double scale) double
roundToNextSignificant(double number) double