xyz_gen 0.97.0 copy "xyz_gen: ^0.97.0" to clipboard
xyz_gen: ^0.97.0 copied to clipboard

This package contains a set of generators to help you with your Flutter projects.

example/example.dart

//.title
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
//
// 🇽🇾🇿 & Dev
//
// Licencing details are in the LICENSE file in the root directory.
//
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
//.title~

import 'package:xyz_gen_annotations/xyz_gen_annotations.dart';

//part '_model_user.g.dart';

// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

@GenerateModel(
  fields: {
    ('id', String),
    ('email', T_LOWER_CASE_STRING),
  },
  shouldInherit: true,
)
// ignore: unused_element
abstract class _ModelUser extends Model {
  @Field()
  String? firstName;

  @Field()
  String? lastName;

  String get fullName => '$firstName $lastName';
}
8
likes
80
points
268
downloads

Publisher

unverified uploader

Weekly Downloads

This package contains a set of generators to help you with your Flutter projects.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, args, collection, meta, path, xyz_gen_annotations, xyz_utils

More

Packages that depend on xyz_gen