annotations library
Annotations for generating Lua table schema documentation.
Annotate a Dart class with TableSchema and its fields with SchemaField
to auto-generate FieldDoc and TableDoc declarations via build_runner.
import 'package:lualike/annotations.dart';
@TableSchema(description: 'Plugin metadata table.')
class PluginInfo {
@SchemaField(description: 'Unique identifier.', required: true)
final String id;
@SchemaField(description: 'Display name.', required: true)
final String name;
}
Classes
- SchemaField
- Annotates a Dart field to describe the corresponding Lua table field.
- TableSchema
- Annotates a Dart class to generate a TableDoc for its schema.