EzMethod class

Full documentation: https://www.ezflap.io/essentials/bound-methods/bound-methods.html

Bound methods are useful in these scenarios:

  • Retrieve or calculate a value that depends on parameters (e.g. inside a z-for loop).
  • Assign bound methods to handle events as the user interacts with the UI (with z-on).

Some properties of bound methods:

  • Bound methods are accessible in the ZML.
  • Unlike computed methods, the value returned from bound methods is not cached.
  • Bound methods may return a value, but can also have a void return type.
  • Bound methods may accept parameters.
  • Bound methods are never asynchronous.

Constructors

EzMethod(String name)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The bound method's Assigned Name.
final
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