operator % method

dynamic operator %(
  1. dynamic other
)

Dynamically modulates exactly natively.

Implementation

dynamic operator %(dynamic other) {
  if (!_hasValue) {
    throw StateError('Any is empty!');
  }
  return (_value as dynamic) % (other is Any ? other.get() : other);
}