Skip to content
pubscout

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.

WASM-ready
$ flutter pub add flutter_chat_types
Source repository

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.

Works with

Packages commonly used together with flutter_chat_types: ones it builds on, ones built on it, and its own family.