flutter_chat_types 3.0.2 copy "flutter_chat_types: ^3.0.2" to clipboard
flutter_chat_types: ^3.0.2 copied to clipboard

outdated

Utility library for the flutter_chat_ui and flutter_firebase_chat_core libraries which contains shared type declarations.

example/main.dart

import 'package:flutter_chat_types/flutter_chat_types.dart'
    show TextMessage, User;

void main() {
  const user = User(id: 'authorId');
  const message = TextMessage(author: user, id: 'id', text: 'text');
  print(message.toJson());
  final json = {
    'author': {'id': 'authorId'},
    'id': 'id',
    'text': 'text'
  };
  print(TextMessage.fromJson(json).toJson());
}
43
likes
0
pub points
98%
popularity

Publisher

verified publisherflyer.chat

Utility library for the flutter_chat_ui and flutter_firebase_chat_core libraries which contains shared type declarations.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable, json_annotation, meta

More

Packages that depend on flutter_chat_types