Cell<T> class

A mutable container. Useful for primitives.

Implemented types
Available extensions

Constructors

Cell.new(T val)

Properties

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

Methods

add(String val) → void

Available on Cell<String>, provided by the StringCellExtensions extension

Add
add(double val) → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

Add
add(int val) → void

Available on Cell<int>, provided by the IntCellExtensions extension

Add
copy() Cell<T>
Shallow copy of this Cell.
override
dec() → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

Decrement
dec() → void

Available on Cell<int>, provided by the IntCellExtensions extension

Decrement
div(double val) → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

divide
eq(int val) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

Equal to
eq(bool val) bool

Available on ConstCell<bool>, provided by the BoolConstCellExtensions extension

Equal to
eq(double val) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

Equal to
eq(String val) bool

Available on ConstCell<String>, provided by the StringConstCellExtensions extension

Equal to
get() → T
Returns the inner value.
override
gt(int val) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

Greater than
gt(double val) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

Greater than
gte(double val) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

Greater than or equal to
gte(int val) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

Greater than or equal to
inc() → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

Increment
inc() → void

Available on Cell<int>, provided by the IntCellExtensions extension

Increment
lt(int val) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

Less than
lt(double val) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

Less than
lte(double val) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

Less than or equal to
lte(int val) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

Less than or equal to
mod(double val) → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

modula
mod(int val) → void

Available on Cell<int>, provided by the IntCellExtensions extension

Modulo
mul(int val) → void

Available on Cell<int>, provided by the IntCellExtensions extension

Multiply
mul(double val) → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

multiply
neg() → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

Negate
neg() → void

Available on Cell<int>, provided by the IntCellExtensions extension

Negate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
not() → void

Available on Cell<bool>, provided by the BoolCellExtensions extension

"!" on the inner bool value. e.g. val = !val;
replace(T val) → T
Replaces the inner value with the provided val and returns the original inner value.
set(T val) → void
Sets the inner value to val.
sub(double val) → void

Available on Cell<double>, provided by the DoubleCellExtensions extension

Subtract
sub(int val) → void

Available on Cell<int>, provided by the IntCellExtensions extension

Subtract
swap(covariant Cell<T> cell) → void
swaps the inner values between this cell and that cell.
toString() String
A string representation of this object.
override
truncDiv(int val) → void

Available on Cell<int>, provided by the IntCellExtensions extension

Performs integer division of this object. Truncate Divide
update(T fn(T)) → T
Updates the contained value using fn and returns the new value

Operators

operator %(ConstCell<double> other) Cell<double>

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator %(ConstCell<int> other) Cell<int>

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator *(ConstCell<double> other) Cell<double>

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator *(ConstCell<int> other) Cell<int>

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator +(ConstCell<double> other) Cell<double>

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator +(ConstCell<int> other) Cell<int>

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator +(ConstCell<String> other) Cell<String>

Available on ConstCell<String>, provided by the StringConstCellExtensions extension

operator -(ConstCell<double> other) Cell<double>

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator -(ConstCell<int> other) Cell<int>

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator /(ConstCell<double> other) Cell<double>

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator <(ConstCell<double> other) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator <(ConstCell<int> other) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator <=(ConstCell<double> other) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator <=(ConstCell<int> other) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator ==(covariant Object other) bool
The equality operator.
override
operator >(ConstCell<double> other) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator >(ConstCell<int> other) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator >=(ConstCell<double> other) bool

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator >=(ConstCell<int> other) bool

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator unary-() Cell<double>

Available on ConstCell<double>, provided by the DoubleConstCellExtensions extension

operator unary-() Cell<int>

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

operator ~/(ConstCell<int> other) Cell<int>

Available on ConstCell<int>, provided by the IntConstCellExtensions extension

Performs integer division of this object.