flutter_chat_types
3.6.2, released 3 years ago by flyer.chat
Utility library containing shared type declarations for chat UI and core libraries.
What it does
Provides data classes, models, and JSON serialization for chat messages, rooms, and users. It is designed to be a shared dependency for chat-related packages rather than used directly.
AI-written summary of version 3.6.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building or using packages like flutter_chat_ui or flutter_firebase_chat_core that depend on these types.
Skip it when
- You want to use it directly in your own app code without utilizing dependent chat UI or core packages.
- You are building a custom chat system from scratch without flyerhq chat libraries.
Strengths
- Provides standardized chat data models out of the box.
- Includes JSON serialization and copyWith methods for chat entities.
Weaknesses
- Not meant to be used directly as a standalone utility package.
- Very narrow and specific domain scope.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 3
Add to pubspec.yaml dependencies.
Alternatives
Packages that do the same job and could replace flutter_chat_types.
- gtk
GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.
76Compare - syncfusion_flutter_core
Core dependency for Syncfusion Flutter widgets, providing shared functionality.
90Compare - flutter_flavorizr
A utility to easily create and configure application flavors in Flutter.
86Compare - result_type
A Result type representing success or failure in Dart
50Compare
Works with
Packages commonly used together with flutter_chat_types: ones it builds on, ones built on it, and its own family.
- json_annotationflutter_chat_types depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- equatableflutter_chat_types depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- flutter_chat_uiSame familyA customizable, cross‑platform chat UI widget set for Flutter.
- flutter_chat_coreSame familyCore data models, controllers, and utilities for the Flyer Chat ecosystem.
- flutter_firebase_chat_coreBuilt on flutter_chat_typesFirebase backend integration for chat applications in Flutter.