CalcManager class

CalcManager - The Calculator Manager: This will hold all calculator operations

Constructors

CalcManager()

Properties

colours List<MaterialColor>
colour data
final
hashCode int
The hash code for this object.
no setterinherited
random Random
Random object used for generating random values
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addNumbers(double first, double second) double
Perform addition on the two values
changeColor() MaterialColor
Return a randomly chosen colour from colour data list
checkForPremiseSatisfaction(double first, double second) bool
Check if first number is greater than second
divideNumbers(double first, double second) double
Perform division on the two values
multiplyNumbers(double first, double second) double
Perform multiplication on the two values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subtractNumbers(double first, double second) double
Perform subtraction on the two values
toString() String
A string representation of this object.
inherited

Operators

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