Skip to content

Instantly share code, notes, and snippets.

@ehbc221
Last active June 8, 2023 16:53
Show Gist options
  • Select an option

  • Save ehbc221/d21dc82aee798bed5d1af126f50fbd34 to your computer and use it in GitHub Desktop.

Select an option

Save ehbc221/d21dc82aee798bed5d1af126f50fbd34 to your computer and use it in GitHub Desktop.
A mixin for handling filtering criteria in Flutter
/// Wrapper for all the criterias.
///
/// - author - @ehbc221
/// - version - 1.0.0
/// - last updated - June 8th, 2023
mixin Criteria {
Criteria copy();
/// The search page.
abstract final int? page;
/// The size of the pagination.
abstract final int? size;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment