On this page
setRangeText method
void setRangeText(Source
void setRangeText(String replacement,
{int start, int end, String selectionMode}) {
if ((replacement is String) &&
start == null &&
end == null &&
selectionMode == null) {
_blink.BlinkHTMLInputElement.instance
.setRangeText_Callback_1_(this, replacement);
return;
}
if ((end is int) &&
(start is int) &&
(replacement is String) &&
selectionMode == null) {
_blink.BlinkHTMLInputElement.instance
.setRangeText_Callback_3_(this, replacement, start, end);
return;
}
if ((selectionMode is String || selectionMode == null) &&
(end is int) &&
(start is int) &&
(replacement is String)) {
_blink.BlinkHTMLInputElement.instance.setRangeText_Callback_4_(
this, replacement, start, end, selectionMode);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/InputElement/setRangeText.html