FlutterExprtkPlatform class Null safety

The interface that implementations of flutter_exprtk must implement.

Platform implementations should extend this class rather than implement it as flutter_exprtk does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added FlutterExprtkPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • FlutterExprtkPlatform
Implementers

Constructors

FlutterExprtkPlatform()
Constructs a FlutterExprtkPlatform.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

clear(int pExpression) → void
Clear the expresseion
free(int ptr) → void
getConst(int constantName, int pExpression) double
Get the value of constant constantName
getResult(int pExpression) double
Get the result of an expresssion
getVar(int variableName, int pExpression) double
Get the current value of the variable variableName
isValid(int pExpression) int
Check whether an expression is valid
newExpression({required String expression, required Map<String, double> variables, Map<String, double>? constants}) int
Creates a new Expression instance in the native library Note: This shouldn't be called manually
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setConst(int constantName, double variableValue, int pExpression) → void
Set the current value of the constant constantName
setVar(int variableName, double variableValue, int pExpression) → void
Set variable variableName to variableValue
toNativeUtf8(String string) int
Get a pointer to a char* array
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance FlutterExprtkPlatform
The default instance of FlutterExprtkPlatform to use, defaults to FlutterExprtkPlatformUnsupported.
read / write