replace method

void replace(
  1. Uri uri,
  2. Range range,
  3. String newText, [
  4. WorkspaceEditEntryMetadata? metadata,
])

Replace the given range with given text for the given resource.

@param uri A resource identifier. @param range A range. @param newText A string. @param metadata Optional metadata for the entry.

Implementation

void replace(
  _i3.Uri uri,
  _i3.Range range,
  _i2.String newText, [
  _i3.WorkspaceEditEntryMetadata? metadata,
]) {
  _i5.callMethod(
    this,
    'replace',
    [
      uri,
      range,
      newText,
      metadata ?? _i6.undefined,
    ],
  );
}