flutter_lua_bridge_codegen library
The contract model and emitters behind the flutter_lua_bridge builders.
Applications do not import this library: they run build_runner, which
loads the builders from builder.dart.
Classes
- BridgeApi
- BridgeData
- BridgeEnum
- BridgeField
- BridgeMethod
- BridgeSchema
- BridgeType
- Contract model shared by the Dart, Lua and Teal emitters.
Enums
Extensions
Functions
-
emitDart(
BridgeSchema schema) → String -
The Dart declarations for a contract, to be placed in a
partof the library that declares it. That library importspackage:flutter_lua_bridge/flutter_lua_bridge.dart. -
emitLua(
BridgeSchema schema) → String - The Lua protocol glue for a contract. It is embedded in the generated Dart and loaded as the module BridgeSchema.bridgeModule.
-
emitTeal(
BridgeSchema schema) → String - Teal declarations for the module BridgeSchema.bridgeModule.
-
parseBridgeOptimization(
String value) → BridgeOptimization -
readBridgeSchema(
LibraryElement library, {required String name, BridgeOptimization optimization = BridgeOptimization.o1}) → BridgeSchema? -
Reads the bridge contract declared by
library.