Unverified Commit 035eeb53 authored by Justin McCandless's avatar Justin McCandless Committed by GitHub

updateEditingValueWithDeltas snippet docs fix (#99570)

Just a docs change for a broken tool snippet.
parent cff36b94
......@@ -1195,16 +1195,23 @@ abstract class DeltaTextInputClient extends TextInputClient {
/// to the client's editing state. A change is any mutation to the raw text
/// value, or any updates to the selection and/or composing region.
///
/// Here is an example of what implementation of this method could look like:
/// {@tool snippet}
/// This example shows what an implementation of this method could look like.
///
/// ```dart
/// TextEditingValue? _localValue;
/// @override
/// void updateEditingValueWithDeltas(List<TextEditingDelta> textEditingDeltas) {
/// TextEditingValue newValue = _previousValue;
/// if (_localValue == null) {
/// return;
/// }
/// TextEditingValue newValue = _localValue!;
/// for (final TextEditingDelta delta in textEditingDeltas) {
/// newValue = delta.apply(newValue);
/// }
/// _localValue = newValue;
/// }
/// ```
/// {@end-tool}
void updateEditingValueWithDeltas(List<TextEditingDelta> textEditingDeltas);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment