LeapFunction class

Represents a callable function definition.

Constructors

LeapFunction.new({required String name, required String description, required List<LeapFunctionParameter> parameters, required Future<Map<String, dynamic>> implementation(Map<String, dynamic> arguments)})
const

Properties

description String
Function description
final
hashCode int
The hash code for this object.
no setterinherited
implementation Future<Map<String, dynamic>> Function(Map<String, dynamic> arguments)
Function implementation callback
final
name String
Function name
final
parameters List<LeapFunctionParameter>
Function parameters
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getSchema() Map<String, dynamic>
Get JSON schema for this function
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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