xyz_gen 0.86.3 copy "xyz_gen: ^0.86.3" to clipboard
xyz_gen: ^0.86.3 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,
)
abstract class _ModelUser extends Model {
  @Field()
  String? firstName;

  @Field()
  String? lastName;

  String get fullName => '$firstName $lastName';
}
8
likes
0
points
415
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

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

More

Packages that depend on xyz_gen