DartBlockNativeFunctions class

Registry of all native functions available in DartBlock programs.

Constructors

DartBlockNativeFunctions()

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 Properties

abs → DartBlockNativeFunction
Calculate the absolute value of a number.
final
all → List<DartBlockNativeFunction>
List of all available native functions.
final
contains → DartBlockNativeFunction
final
endsWith → DartBlockNativeFunction
final
lowercase → DartBlockNativeFunction
final
max → DartBlockNativeFunction
Get the maximum of two numbers.
final
min → DartBlockNativeFunction
Get the minimum of two numbers.
final
pow → DartBlockNativeFunction
Raise a number to a power.
final
randomInt → DartBlockNativeFunction
Generate a random integer between min (inclusive) and max (inclusive).
final
round → DartBlockNativeFunction
Round a number to the nearest integer.
final
sqrt → DartBlockNativeFunction
Calculate the square root of a number.
final
startsWith → DartBlockNativeFunction
final
substring → DartBlockNativeFunction
final
uppercase → DartBlockNativeFunction
final

Static Methods

filter(List<DartBlockNativeFunctionCategory> categories, List<DartBlockNativeFunctionType> types) → List<DartBlockNativeFunction>
Filter native functions by category and type.
getByName(String name) → DartBlockNativeFunction?
Lookup a native function by name.