withoutFallback property

String? withoutFallback

Applies the metadata to the received body body in order to remove the fallback. If either ReplyData.start or ReplyData.end are null, then body is returned as is.

Implementation

String? get withoutFallback {
  if (body == null) return null;
  if (start == null || end == null) return body;

  return body!.replaceRange(start!, end, '');
}