ParseMapiIntegerValue static method

Object? ParseMapiIntegerValue(
  1. String? s
)
Converts a MAPI Integer value. The String value.

Implementation

static Object? ParseMapiIntegerValue(String? s) {
  final intValue = s == null ? null : int.tryParse(s.trim());
  if (intValue != null && intValue >= -2147483648 && intValue <= 2147483647) {
    return intValue;
  } else {
    return s;
  }
}