fluent_dart 0.0.1+2 copy "fluent_dart: ^0.0.1+2" to clipboard
fluent_dart: ^0.0.1+2 copied to clipboard

FluentDart is based on Andre Baltieri https://github.com/andrebaltieri Flunt for use Notifications Pattern with your entities.

example/lib/main.dart

import 'models/user-model.dart';

void main() {
  var user = User(name: 'Nome');

  //show notifications errors
  user.notifications.forEach((f) => print(f.message));

  print('\n${user.notifications.length} Erros de validação');

  user = User(
    name: 'Nome do Usuário',
    email: 'user@user.com.br',
  );

  user.notifications.forEach((f) => print(f.message));

  print('${user.notifications.length} Erros de validação');
}
0
likes
30
pub points
2%
popularity

Publisher

unverified uploader

FluentDart is based on Andre Baltieri https://github.com/andrebaltieri Flunt for use Notifications Pattern with your entities.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on fluent_dart