setTimeToLiveAsInteger method

FirebaseMpnBuilder setTimeToLiveAsInteger(
  1. int? timeToLive
)

Sets the android.ttl field with an integer value.

  • timeToLive An integer to be used for the android.ttl field value, or null to clear it.

Returns this MpnBuilder object, for fluent use.

Implementation

FirebaseMpnBuilder setTimeToLiveAsInteger(int? timeToLive) {
  _timeToLive = timeToLive == null ? null : '$timeToLive';
  return this;
}