model_annotation 0.0.6
model_annotation: ^0.0.6 copied to clipboard
Library used to generate code snippets for data extraction and conversion between Model and Entity
example/lib/main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
// final myClassGenerated = MyClass();
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('My Library Example')),
body: Center(
// child: Text(myClassGenerated.message), // Sử dụng code được sinh ra
),
),
);
}
}