getTimeToLiveAsInteger method

int? getTimeToLiveAsInteger()

Gets the value of android.ttl field as an integer.

Returns an integer with the value of android.ttl field, or null if absent.

Implementation

int? getTimeToLiveAsInteger() {
  var t = _timeToLive;
  return t == null ? null : int.parse(t);
}