Calculator class

A simple calculator class for demonstration purposes

Constructors

Calculator()

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 Methods

add(int a, int b) → int
Adds two numbers and returns the result
divide(int a, int b) → double
Divides two numbers and returns the result Throws ArgumentError if divisor is zero
multiply(int a, int b) → int
Multiplies two numbers and returns the result
subtract(int a, int b) → int
Subtracts two numbers and returns the result