ChatItemKey.fromString constructor
- String value
Constructs a ChatItemKey from the provided String.
Implementation
factory ChatItemKey.fromString(String value) {
  final List<String> split = value.split('_');
  if (split.length != 2) {
    throw const FormatException('Invalid format');
  }
  return ChatItemKey(
    PreciseDateTime.fromMicrosecondsSinceEpoch(int.parse(split[0])),
    ChatItemId(split[1]),
  );
}