dcoDecodeDuration function

Duration dcoDecodeDuration(
  1. int ts
)

This is only intended to be used by automatically generated code, instead of developers.

Implementation

Duration dcoDecodeDuration(int ts) {
  if (kIsWeb) {
    return Duration(milliseconds: ts);
  }
  return Duration(microseconds: ts);
}