xyz_gen_annotations 0.32.1 copy "xyz_gen_annotations: ^0.32.1" to clipboard
xyz_gen_annotations: ^0.32.1 copied to clipboard

This package includes the annotations for the xyz_gen package. See https://pub.dev/packages/xyz_gen for more information.

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: {
    ('email', T_LOWER_CASE_STRING),
  },
  shouldInherit: true,
)
abstract class _ModelUser extends Model {
  @Field()
  String? firstName;

  @Field()
  String? lastName;

  @Field()
  ModelUser? child;

  String get fullName => '$firstName $lastName';
}
1
likes
0
points
459
downloads

Publisher

unverified uploader

Weekly Downloads

This package includes the annotations for the xyz_gen package. See https://pub.dev/packages/xyz_gen for more information.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, equatable, meta, xyz_utils

More

Packages that depend on xyz_gen_annotations