[pigeon] Add support for DateTime

This issue has been tracked since 2022-11-24.

Use case

DateTime is an extremely common type, likely to be used in many Flutter plugins. However, we need to convert DateTime to integer or string to communicate with the native code, and add the same logic both on Dart, Swift/ObjectiveC and Kotlin/Java, which is not type safe (one of the main goals of pigeon).


  • Accept DateTime type on pigeon
  • Generate the code parsing DateTime from/to the StandardMessageCodec using integer or string.
More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-12-07
Star Count 147031
Watcher Count 3560
Fork Count 23915
Issue Count 11300


Issue Title Created Date Updated Date