Search packages, repositories and app categories

Package detailsv3.1.0+1

isar_generator

Code generator for the Isar Database. Finds classes annotated with @Collection.

macOSWindowsLinux
30-day downloads
1.3K
Likes
38
Pub points
95

Install package

flutter pub add isar_generator

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

IsarGenerator is a code generator for the Isar database that processes Dart classes annotated with @Collection, automatically generating the necessary boilerplate code for database operations. It enables efficient, type-safe interactions with Isar's lightweight, high-performance embedded database. The generator simplifies schema definition and reduces manual coding, improving development speed and reducing errors. It integrates seamlessly into Flutter and Dart projects across macOS, Windows, and Linux platforms.

Use cases

  • Database schema definition
  • Auto-generation of CRUD methods
  • Type-safe database queries
  • Integration with Flutter apps
  • Offline data storage
  • Real-time data synchronization

Key features

  • Annotation-based class processing
  • Automatic code generation
  • Cross-platform support
  • Seamless Isar integration
  • Minimal boilerplate
  • Fast compilation

Suitable for

  • Flutter developers using Isar
  • Apps requiring offline-first data storage
  • Projects needing fast local database access
  • Teams prioritizing type safety
  • Developers wanting reduced manual code

Considerations

  • Requires Isar dependency
  • Needs build_runner for generation
  • Limited to Dart/Flutter environments
  • Manual annotation required
  • Build step needed in CI/CD pipelines

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

packages/isar/README.md

Categories

Dependencies

Dependency list 9 items

Source repository

Projects using this package