getMapReleaseInfo static method

  1. @Deprecated('Use the mapReleaseInfo getter instead.')
DateTime getMapReleaseInfo()

Returns the map release date/time in UTC.

Returns

  • (DateTime) UTC timestamp representing the map release instant.

Implementation

@Deprecated('Use the mapReleaseInfo getter instead.')
static DateTime getMapReleaseInfo() {
  final OperationResult resultString = staticMethod(
    'MapDetails',
    'getMapReleaseInfo',
  );

  final Map<String, dynamic> result =
      resultString['result'] as Map<String, dynamic>;
  final int first = result['first'];

  return DateTime.fromMillisecondsSinceEpoch(first, isUtc: true);
}