base_data 2.0.0
base_data: ^2.0.0 copied to clipboard

Flutter package for manage general repositories.

Library for manage general repositories.

Using #

For use repositories with api implementations


import 'package:base_data/base_data.dart';

mixin UsersApiSource on GetAllApiSource<User> {}

class UsersRepositoryAdapter with GetAllRepositoryAdapter<User> {
  final UsersApiSource apiSource;

  UsersRepositoryAdapter(this.apiSource);
}

For use repositories with api and db implementations


import 'package:base_data/base_data.dart';

mixin UsersApiSource on GetAllApiSource<User> {}

mixin UsersDbSource on PutAllDbSource<User> {}

class UsersRepositoryAdapter with StorageGetAllRepositoryAdapter<User> {
  final UsersApiSource apiSource;
  final UsersDbSource dbSource;

  UsersRepositoryAdapter(
    this.apiSource,
    this.dbSource,
  );
}


0
likes
90
pub points
4%
popularity

Flutter package for manage general repositories.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

base_domain, base_models, flutter

More

Packages that depend on base_data