f_000031 204 KB
Newer Older
1
<<<<<<< Updated upstream
2
define(['dart_sdk', 'packages/flutter/src/painting/placeholder_span.dart', 'packages/flutter/src/painting/edge_insets.dart', 'packages/flutter/src/foundation/change_notifier.dart', 'packages/characters/src/extensions.dart', 'packages/flutter/src/services/raw_keyboard_windows.dart', 'packages/flutter/src/services/keyboard_key.dart', 'packages/flutter/src/services/text_editing.dart', 'packages/flutter/src/services/clipboard.dart', 'packages/flutter/src/services/text_input.dart', 'packages/flutter/src/rendering/layer.dart', 'packages/flutter/src/gestures/tap.dart', 'packages/flutter/src/gestures/long_press.dart', 'packages/flutter/src/painting/basic_types.dart', 'packages/flutter/src/gestures/events.dart', 'packages/flutter/src/foundation/_platform_web.dart', 'packages/flutter/src/painting/colors.dart', 'packages/flutter/src/foundation/debug.dart', 'packages/flutter/src/rendering/viewport_offset.dart', 'packages/flutter/src/painting/strut_style.dart'], (function load__packages__flutter__src__rendering__editable_dart(dart_sdk, packages__flutter__src__painting__placeholder_span$46dart, packages__flutter__src__painting__edge_insets$46dart, packages__flutter__src__foundation__change_notifier$46dart, packages__characters__src__extensions$46dart, packages__flutter__src__services__raw_keyboard_windows$46dart, packages__flutter__src__services__keyboard_key$46dart, packages__flutter__src__services__text_editing$46dart, packages__flutter__src__services__clipboard$46dart, packages__flutter__src__services__text_input$46dart, packages__flutter__src__rendering__layer$46dart, packages__flutter__src__gestures__tap$46dart, packages__flutter__src__gestures__long_press$46dart, packages__flutter__src__painting__basic_types$46dart, packages__flutter__src__gestures__events$46dart, packages__flutter__src__foundation___platform_web$46dart, packages__flutter__src__painting__colors$46dart, packages__flutter__src__foundation__debug$46dart, packages__flutter__src__rendering__viewport_offset$46dart, packages__flutter__src__painting__strut_style$46dart) {
Lubber's avatar
Lubber committed
3 4 5
  'use strict';
  const core = dart_sdk.core;
  const ui = dart_sdk.ui;
6 7
  const _internal = dart_sdk._internal;
  const math = dart_sdk.math;
Lubber's avatar
Lubber committed
8 9
  const async = dart_sdk.async;
  const _interceptors = dart_sdk._interceptors;
10
  const collection = dart_sdk.collection;
Lubber's avatar
Lubber committed
11 12
  const dart = dart_sdk.dart;
  const dartx = dart_sdk.dartx;
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  const text_painter = packages__flutter__src__painting__placeholder_span$46dart.src__painting__text_painter;
  const text_span = packages__flutter__src__painting__placeholder_span$46dart.src__painting__text_span;
  const edge_insets = packages__flutter__src__painting__edge_insets$46dart.src__painting__edge_insets;
  const change_notifier = packages__flutter__src__foundation__change_notifier$46dart.src__foundation__change_notifier;
  const extensions = packages__characters__src__extensions$46dart.src__extensions;
  const raw_keyboard = packages__flutter__src__services__raw_keyboard_windows$46dart.src__services__raw_keyboard;
  const raw_keyboard_macos = packages__flutter__src__services__raw_keyboard_windows$46dart.src__services__raw_keyboard_macos;
  const keyboard_key = packages__flutter__src__services__keyboard_key$46dart.src__services__keyboard_key;
  const text_editing = packages__flutter__src__services__text_editing$46dart.src__services__text_editing;
  const clipboard = packages__flutter__src__services__clipboard$46dart.src__services__clipboard;
  const text_input = packages__flutter__src__services__text_input$46dart.src__services__text_input;
  const object = packages__flutter__src__rendering__layer$46dart.src__rendering__object;
  const box = packages__flutter__src__rendering__layer$46dart.src__rendering__box;
  const layer = packages__flutter__src__rendering__layer$46dart.src__rendering__layer;
  const tap = packages__flutter__src__gestures__tap$46dart.src__gestures__tap;
  const long_press = packages__flutter__src__gestures__long_press$46dart.src__gestures__long_press;
  const basic_types = packages__flutter__src__painting__basic_types$46dart.src__painting__basic_types;
  const events = packages__flutter__src__gestures__events$46dart.src__gestures__events;
  const platform = packages__flutter__src__foundation___platform_web$46dart.src__foundation__platform;
  const colors = packages__flutter__src__painting__colors$46dart.src__painting__colors;
  const diagnostics = packages__flutter__src__foundation__debug$46dart.src__foundation__diagnostics;
  const viewport_offset = packages__flutter__src__rendering__viewport_offset$46dart.src__rendering__viewport_offset;
  const strut_style = packages__flutter__src__painting__strut_style$46dart.src__painting__strut_style;
  var editable = Object.create(dart.library);
  var $length = dartx.length;
  var $isNotEmpty = dartx.isNotEmpty;
  var $codeUnitAt = dartx.codeUnitAt;
  var $first = dartx.first;
Lubber's avatar
Lubber committed
41
  var $toString = dartx.toString;
42 43 44 45 46 47 48 49 50
  var $substring = dartx.substring;
  var $times = dartx['*'];
  var $isEmpty = dartx.isEmpty;
  var $last = dartx.last;
  var $fold = dartx.fold;
  var $isFinite = dartx.isFinite;
  var $round = dartx.round;
  var $_get = dartx._get;
  var $clamp = dartx.clamp;
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
=======
define(['dart_sdk', 'packages/flutter/src/painting/alignment.dart', 'packages/flutter/src/painting/box_fit.dart', 'packages/flutter/src/foundation/object.dart', 'packages/flutter/src/painting/_network_image_web.dart', 'packages/flutter/src/foundation/debug.dart', 'packages/flutter/src/painting/image_stream.dart', 'packages/flutter/src/painting/debug.dart', 'packages/flutter/src/scheduler/binding.dart'], (function load__packages__flutter__src__painting__decoration_image_dart(dart_sdk, packages__flutter__src__painting__alignment$46dart, packages__flutter__src__painting__box_fit$46dart, packages__flutter__src__foundation__object$46dart, packages__flutter__src__painting___network_image_web$46dart, packages__flutter__src__foundation__debug$46dart, packages__flutter__src__painting__image_stream$46dart, packages__flutter__src__painting__debug$46dart, packages__flutter__src__scheduler__binding$46dart) {
  'use strict';
  const core = dart_sdk.core;
  const ui = dart_sdk.ui;
  const _interceptors = dart_sdk._interceptors;
  const collection = dart_sdk.collection;
  const _engine = dart_sdk._engine;
  const developer = dart_sdk.developer;
  const _js_helper = dart_sdk._js_helper;
  const dart = dart_sdk.dart;
  const dartx = dart_sdk.dartx;
  const alignment = packages__flutter__src__painting__alignment$46dart.src__painting__alignment;
  const box_fit = packages__flutter__src__painting__box_fit$46dart.src__painting__box_fit;
  const object = packages__flutter__src__foundation__object$46dart.src__foundation__object;
  const image_provider = packages__flutter__src__painting___network_image_web$46dart.src__painting__image_provider;
  const assertions = packages__flutter__src__foundation__debug$46dart.src__foundation__assertions;
  const diagnostics = packages__flutter__src__foundation__debug$46dart.src__foundation__diagnostics;
  const image_stream = packages__flutter__src__painting__image_stream$46dart.src__painting__image_stream;
  const debug = packages__flutter__src__painting__debug$46dart.src__painting__debug;
  const binding = packages__flutter__src__scheduler__binding$46dart.src__scheduler__binding;
  var decoration_image = Object.create(dart.library);
  var $runtimeType = dartx.runtimeType;
>>>>>>> Stashed changes
Lubber's avatar
Lubber committed
75
  var $add = dartx.add;
76 77 78 79 80 81 82 83 84 85 86 87
  var $join = dartx.join;
  var $isNotEmpty = dartx.isNotEmpty;
  var $toDouble = dartx.toDouble;
  var $truncate = dartx.truncate;
  var $toInt = dartx.toInt;
  var $_get = dartx._get;
  var $_set = dartx._set;
  var $values = dartx.values;
  var $toSet = dartx.toSet;
  var $isEmpty = dartx.isEmpty;
  var $floor = dartx.floor;
  var $ceil = dartx.ceil;
Lubber's avatar
Lubber committed
88 89
  dart._checkModuleNullSafetyMode(false);
  var T = {
90
<<<<<<< Updated upstream
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
    SelectionChangedCauseL: () => (T.SelectionChangedCauseL = dart.constFn(dart.legacy(editable.SelectionChangedCause)))(),
    ValueNotifierOfbool: () => (T.ValueNotifierOfbool = dart.constFn(change_notifier.ValueNotifier$(core.bool)))(),
    StringTobool: () => (T.StringTobool = dart.constFn(dart.fnType(core.bool, [core.String])))(),
    TextSpanN: () => (T.TextSpanN = dart.constFn(dart.nullable(text_span.TextSpan)))(),
    JSArrayOfTextBox: () => (T.JSArrayOfTextBox = dart.constFn(_interceptors.JSArray$(ui.TextBox)))(),
    JSArrayOfTextSelectionPoint: () => (T.JSArrayOfTextSelectionPoint = dart.constFn(_interceptors.JSArray$(editable.TextSelectionPoint)))(),
    RectN: () => (T.RectN = dart.constFn(dart.nullable(ui.Rect)))(),
    RectNAndTextBoxToRect: () => (T.RectNAndTextBoxToRect = dart.constFn(dart.fnType(ui.Rect, [T.RectN(), ui.TextBox])))(),
    DiagnosticsPropertyOfValueNotifierOfbool: () => (T.DiagnosticsPropertyOfValueNotifierOfbool = dart.constFn(diagnostics.DiagnosticsProperty$(T.ValueNotifierOfbool())))(),
    DiagnosticsPropertyOfbool: () => (T.DiagnosticsPropertyOfbool = dart.constFn(diagnostics.DiagnosticsProperty$(core.bool)))(),
    DiagnosticsPropertyOfLocale: () => (T.DiagnosticsPropertyOfLocale = dart.constFn(diagnostics.DiagnosticsProperty$(ui.Locale)))(),
    DiagnosticsPropertyOfTextSelection: () => (T.DiagnosticsPropertyOfTextSelection = dart.constFn(diagnostics.DiagnosticsProperty$(text_editing.TextSelection)))(),
    DiagnosticsPropertyOfViewportOffset: () => (T.DiagnosticsPropertyOfViewportOffset = dart.constFn(diagnostics.DiagnosticsProperty$(viewport_offset.ViewportOffset)))(),
    JSArrayOfDiagnosticsNode: () => (T.JSArrayOfDiagnosticsNode = dart.constFn(_interceptors.JSArray$(diagnostics.DiagnosticsNode)))(),
    LinkedHashSetOfLogicalKeyboardKey: () => (T.LinkedHashSetOfLogicalKeyboardKey = dart.constFn(collection.LinkedHashSet$(keyboard_key.LogicalKeyboardKey)))()
106 107 108 109 110 111 112 113 114 115 116 117 118 119
=======
    ImageRepeatL: () => (T.ImageRepeatL = dart.constFn(dart.legacy(decoration_image.ImageRepeat)))(),
    JSArrayOfString: () => (T.JSArrayOfString = dart.constFn(_interceptors.JSArray$(core.String)))(),
    DiagnosticsPropertyOfDecorationImage: () => (T.DiagnosticsPropertyOfDecorationImage = dart.constFn(diagnostics.DiagnosticsProperty$(decoration_image.DecorationImage)))(),
    DiagnosticsPropertyOfImageConfiguration: () => (T.DiagnosticsPropertyOfImageConfiguration = dart.constFn(diagnostics.DiagnosticsProperty$(image_provider.ImageConfiguration)))(),
    JSArrayOfDiagnosticsNode: () => (T.JSArrayOfDiagnosticsNode = dart.constFn(_interceptors.JSArray$(diagnostics.DiagnosticsNode)))(),
    VoidTobool: () => (T.VoidTobool = dart.constFn(dart.fnType(core.bool, [])))(),
    LinkedHashSetOfImageSizeInfo: () => (T.LinkedHashSetOfImageSizeInfo = dart.constFn(collection.LinkedHashSet$(debug.ImageSizeInfo)))(),
    doubleL: () => (T.doubleL = dart.constFn(dart.legacy(core.double)))(),
    IdentityMapOfString$Object: () => (T.IdentityMapOfString$Object = dart.constFn(_js_helper.IdentityMap$(core.String, core.Object)))(),
    IdentityMapOfString$ImageSizeInfo: () => (T.IdentityMapOfString$ImageSizeInfo = dart.constFn(_js_helper.IdentityMap$(core.String, debug.ImageSizeInfo)))(),
    DurationTovoid: () => (T.DurationTovoid = dart.constFn(dart.fnType(dart.void, [core.Duration])))(),
    SyncIterableOfRect: () => (T.SyncIterableOfRect = dart.constFn(_js_helper.SyncIterable$(ui.Rect)))()
>>>>>>> Stashed changes
Lubber's avatar
Lubber committed
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
  };
  var T$Eval = Object.assign({
    _: () => T$Eval
  }, T);
  var S = {
    _: () => S
  };
  var S$Eval = Object.assign({
    _: () => S$Eval
  }, S);
  const CT = Object.create({
    _: () => (C, CT)
  });
  dart.defineLazy(CT, {
    get C0() {
      return C[0] = dart.const({
136
<<<<<<< Updated upstream
137 138
        __proto__: editable.SelectionChangedCause.prototype,
        [_name$]: "SelectionChangedCause.tap",
139 140 141 142
=======
        __proto__: decoration_image.ImageRepeat.prototype,
        [_name$]: "ImageRepeat.repeat",
>>>>>>> Stashed changes
Lubber's avatar
Lubber committed
143 144 145 146 147
        index: 0
      });
    },
    get C1() {
      return C[1] = dart.const({
148
<<<<<<< Updated upstream
149 150
        __proto__: editable.SelectionChangedCause.prototype,
        [_name$]: "SelectionChangedCause.doubleTap",
151 152 153 154
=======
        __proto__: decoration_image.ImageRepeat.prototype,
        [_name$]: "ImageRepeat.repeatX",
>>>>>>> Stashed changes
Lubber's avatar
Lubber committed
155 156 157 158 159
        index: 1
      });
    },
    get C2() {
      return C[2] = dart.const({
160
<<<<<<< Updated upstream
161 162
        __proto__: editable.SelectionChangedCause.prototype,
        [_name$]: "SelectionChangedCause.longPress",
163 164 165 166
=======
        __proto__: decoration_image.ImageRepeat.prototype,
        [_name$]: "ImageRepeat.repeatY",
>>>>>>> Stashed changes
Lubber's avatar
Lubber committed
167 168 169 170 171
        index: 2
      });
    },
    get C3() {
      return C[3] = dart.const({
172
<<<<<<< Updated upstream
173 174
        __proto__: editable.SelectionChangedCause.prototype,
        [_name$]: "SelectionChangedCause.forcePress",
175 176 177 178
=======
        __proto__: decoration_image.ImageRepeat.prototype,
        [_name$]: "ImageRepeat.noRepeat",
>>>>>>> Stashed changes
Lubber's avatar
Lubber committed
179 180 181 182
        index: 3
      });
    },
    get C4() {
183
<<<<<<< Updated upstream
184 185 186 187 188
      return C[4] = dart.const({
        __proto__: editable.SelectionChangedCause.prototype,
        [_name$]: "SelectionChangedCause.keyboard",
        index: 4
      });
Lubber's avatar
Lubber committed
189 190 191
    },
    get C5() {
      return C[5] = dart.const({
192 193 194
        __proto__: editable.SelectionChangedCause.prototype,
        [_name$]: "SelectionChangedCause.drag",
        index: 5
Lubber's avatar
Lubber committed
195 196 197
      });
    },
    get C6() {
198 199 200 201 202 203
      return C[6] = dart.constList([C[0] || CT.C0, C[1] || CT.C1, C[2] || CT.C2, C[3] || CT.C3, C[4] || CT.C4, C[5] || CT.C5], T.SelectionChangedCauseL());
    },
    get C7() {
      return C[7] = dart.const({
        __proto__: ui.TextDirection.prototype,
        [_name]: "TextDirection.ltr",
Lubber's avatar
Lubber committed
204 205 206
        index: 1
      });
    },
207 208 209 210 211 212
    get C8() {
      return C[8] = dart.const({
        __proto__: ui.TextDirection.prototype,
        [_name]: "TextDirection.rtl",
        index: 0
      });
Lubber's avatar
Lubber committed
213 214 215
    },
    get C9() {
      return C[9] = dart.const({
216 217 218
        __proto__: ui.TextAlign.prototype,
        [_name]: "TextAlign.start",
        index: 4
Lubber's avatar
Lubber committed
219 220 221 222
      });
    },
    get C10() {
      return C[10] = dart.const({
223 224
        __proto__: text_painter.TextWidthBasis.prototype,
        [_name$0]: "TextWidthBasis.parent",
Lubber's avatar
Lubber committed
225 226 227 228 229
        index: 0
      });
    },
    get C11() {
      return C[11] = dart.const({
230 231 232
        __proto__: ui.BoxHeightStyle.prototype,
        [_name]: "BoxHeightStyle.tight",
        index: 0
Lubber's avatar
Lubber committed
233 234 235 236
      });
    },
    get C12() {
      return C[12] = dart.const({
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
        __proto__: ui.BoxWidthStyle.prototype,
        [_name]: "BoxWidthStyle.tight",
        index: 0
      });
    },
    get C13() {
      return C[13] = dart.const({
        __proto__: edge_insets.EdgeInsets.prototype,
        [EdgeInsets_bottom]: 5,
        [EdgeInsets_right]: 4,
        [EdgeInsets_top]: 4,
        [EdgeInsets_left]: 4
      });
    },
    get C14() {
      return C[14] = dart.const({
        __proto__: ui.Clip.prototype,
        [_name]: "Clip.hardEdge",
        index: 1
      });
    },
    get C15() {
      return C[15] = dart.const({
        __proto__: basic_types.Axis.prototype,
        [_name$1]: "Axis.horizontal",
        index: 0
      });
    },
    get C16() {
      return C[16] = dart.const({
        __proto__: basic_types.Axis.prototype,
        [_name$1]: "Axis.vertical",
        index: 1
      });
    },
    get C17() {
      return C[17] = dart.const({
        __proto__: platform.TargetPlatform.prototype,
        [_name$2]: "TargetPlatform.iOS",
        index: 2
      });
    },
    get C18() {
      return C[18] = dart.const({
        __proto__: platform.TargetPlatform.prototype,
        [_name$2]: "TargetPlatform.android",
        index: 0
      });
    },
    get C19() {
      return C[19] = dart.const({
        __proto__: platform.TargetPlatform.prototype,
        [_name$2]: "TargetPlatform.fuchsia",
        index: 1
      });
    },
    get C20() {
      return C[20] = dart.const({
        __proto__: platform.TargetPlatform.prototype,
        [_name$2]: "TargetPlatform.macOS",
        index: 4
      });
    },
    get C21() {
      return C[21] = dart.const({
        __proto__: platform.TargetPlatform.prototype,
        [_name$2]: "TargetPlatform.linux",
        index: 3
      });
    },
    get C22() {
      return C[22] = dart.const({
        __proto__: platform.TargetPlatform.prototype,
        [_name$2]: "TargetPlatform.windows",
        index: 5
      });
    },
    get C23() {
      return C[23] = dart.const({
        __proto__: ui.Radius.prototype,
        [Radius_y]: 1,
        [Radius_x]: 1
      });
    },
    get C24() {
      return C[24] = dart.const({
        __proto__: ui.Offset.prototype,
        [OffsetBase__dy]: 1,
        [OffsetBase__dx]: 0.5
Lubber's avatar
Lubber committed
326 327 328
      });
    }
  }, false);
329
  var C = Array(25).fill(void 0);
Lubber's avatar
Lubber committed
330
  var I = [
331 332
    "file:///C:/_libs/flutter/packages/flutter/lib/src/rendering/editable.dart",
    "package:flutter/src/rendering/editable.dart"
Lubber's avatar
Lubber committed
333
  ];
334 335
  var _name$ = dart.privateName(editable, "_name");
  editable.SelectionChangedCause = class SelectionChangedCause extends core.Object {
336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370
=======
      return C[4] = dart.constList([C[0] || CT.C0, C[1] || CT.C1, C[2] || CT.C2, C[3] || CT.C3], T.ImageRepeatL());
    },
    get C5() {
      return C[5] = dart.const({
        __proto__: alignment.Alignment.prototype,
        [Alignment_y]: 0,
        [Alignment_x]: 0
      });
    },
    get C6() {
      return C[6] = dart.const({
        __proto__: ui.FilterQuality.prototype,
        [_name]: "FilterQuality.low",
        index: 1
      });
    },
    get C8() {
      return C[8] = dart.constList([-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0], T.doubleL());
    },
    get C7() {
      return C[7] = dart.const({
        __proto__: _engine._CkMatrixColorFilter.prototype,
        [_CkMatrixColorFilter_matrix]: C[8] || CT.C8
      });
    }
  }, false);
  var C = Array(9).fill(void 0);
  var I = [
    "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/painting/decoration_image.dart",
    "package:flutter/src/painting/decoration_image.dart"
  ];
  var _name$ = dart.privateName(decoration_image, "_name");
  decoration_image.ImageRepeat = class ImageRepeat extends core.Object {
>>>>>>> Stashed changes
Lubber's avatar
Lubber committed
371 372 373 374
    toString() {
      return this[_name$];
    }
  };
375
<<<<<<< Updated upstream
376 377 378
  (editable.SelectionChangedCause.new = function(index, _name) {
    if (index == null) dart.nullFailed(I[0], 37, 6, "index");
    if (_name == null) dart.nullFailed(I[0], 37, 6, "_name");
Lubber's avatar
Lubber committed
379 380 381
    this.index = index;
    this[_name$] = _name;
    ;
382 383 384 385 386 387
  }).prototype = editable.SelectionChangedCause.prototype;
  dart.addTypeTests(editable.SelectionChangedCause);
  dart.addTypeCaches(editable.SelectionChangedCause);
  dart.setLibraryUri(editable.SelectionChangedCause, I[1]);
  dart.setFieldSignature(editable.SelectionChangedCause, () => ({
    __proto__: dart.getFields(editable.SelectionChangedCause.__proto__),
Lubber's avatar
Lubber committed
388 389 390
    index: dart.finalFieldType(core.int),
    [_name$]: dart.finalFieldType(core.String)
  }));
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413
  dart.defineExtensionMethods(editable.SelectionChangedCause, ['toString']);
  editable.SelectionChangedCause.tap = C[0] || CT.C0;
  editable.SelectionChangedCause.doubleTap = C[1] || CT.C1;
  editable.SelectionChangedCause.longPress = C[2] || CT.C2;
  editable.SelectionChangedCause.forcePress = C[3] || CT.C3;
  editable.SelectionChangedCause.keyboard = C[4] || CT.C4;
  editable.SelectionChangedCause.drag = C[5] || CT.C5;
  editable.SelectionChangedCause.values = C[6] || CT.C6;
  var point$ = dart.privateName(editable, "TextSelectionPoint.point");
  var direction$ = dart.privateName(editable, "TextSelectionPoint.direction");
  var _name = dart.privateName(ui, "_name");
  editable.TextSelectionPoint = class TextSelectionPoint extends core.Object {
    get point() {
      return this[point$];
    }
    set point(value) {
      super.point = value;
    }
    get direction() {
      return this[direction$];
    }
    set direction(value) {
      super.direction = value;
Lubber's avatar
Lubber committed
414 415
    }
    toString() {
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
      switch (this.direction) {
        case C[7] || CT.C7:
        {
          return dart.str(this.point) + "-ltr";
        }
        case C[8] || CT.C8:
        {
          return dart.str(this.point) + "-rtl";
        }
        case null:
        {
          return dart.str(this.point);
        }
        default:
        {
          dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
        }
      }
Lubber's avatar
Lubber committed
434 435
    }
  };
436 437 438 439 440
  (editable.TextSelectionPoint.new = function(point, direction) {
    if (point == null) dart.nullFailed(I[0], 79, 33, "point");
    this[point$] = point;
    this[direction$] = direction;
    if (!(point != null)) dart.assertFailed(null, I[0], 80, 14, "point != null");
Lubber's avatar
Lubber committed
441
    ;
442 443 444 445 446 447 448 449
  }).prototype = editable.TextSelectionPoint.prototype;
  dart.addTypeTests(editable.TextSelectionPoint);
  dart.addTypeCaches(editable.TextSelectionPoint);
  dart.setLibraryUri(editable.TextSelectionPoint, I[1]);
  dart.setFieldSignature(editable.TextSelectionPoint, () => ({
    __proto__: dart.getFields(editable.TextSelectionPoint.__proto__),
    point: dart.finalFieldType(ui.Offset),
    direction: dart.finalFieldType(dart.nullable(ui.TextDirection))
Lubber's avatar
Lubber committed
450
  }));
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576
  dart.defineExtensionMethods(editable.TextSelectionPoint, ['toString']);
  var onSelectionChanged$ = dart.privateName(editable, "RenderEditable.onSelectionChanged");
  var onCaretChanged$ = dart.privateName(editable, "RenderEditable.onCaretChanged");
  var ignorePointer$ = dart.privateName(editable, "RenderEditable.ignorePointer");
  var textSelectionDelegate$ = dart.privateName(editable, "RenderEditable.textSelectionDelegate");
  var _name$0 = dart.privateName(text_painter, "_name");
  var EdgeInsets_bottom = dart.privateName(edge_insets, "EdgeInsets.bottom");
  var EdgeInsets_right = dart.privateName(edge_insets, "EdgeInsets.right");
  var EdgeInsets_top = dart.privateName(edge_insets, "EdgeInsets.top");
  var EdgeInsets_left = dart.privateName(edge_insets, "EdgeInsets.left");
  var _textLayoutLastMaxWidth = dart.privateName(editable, "_textLayoutLastMaxWidth");
  var _textLayoutLastMinWidth = dart.privateName(editable, "_textLayoutLastMinWidth");
  var _lastCaretRect = dart.privateName(editable, "_lastCaretRect");
  var _selectionStartInViewport = dart.privateName(editable, "_selectionStartInViewport");
  var _selectionEndInViewport = dart.privateName(editable, "_selectionEndInViewport");
  var _cursorResetLocation = dart.privateName(editable, "_cursorResetLocation");
  var _wasSelectingVerticallyWithKeyboard = dart.privateName(editable, "_wasSelectingVerticallyWithKeyboard");
  var _cachedPlainText = dart.privateName(editable, "_cachedPlainText");
  var _hasFocus = dart.privateName(editable, "_hasFocus");
  var _listenerAttached = dart.privateName(editable, "_listenerAttached");
  var _forceLine = dart.privateName(editable, "_forceLine");
  var _readOnly = dart.privateName(editable, "_readOnly");
  var _selectionRects = dart.privateName(editable, "_selectionRects");
  var _cursorWidth = dart.privateName(editable, "_cursorWidth");
  var _floatingCursorOn = dart.privateName(editable, "_floatingCursorOn");
  var __RenderEditable__floatingCursorOffset = dart.privateName(editable, "_#RenderEditable#_floatingCursorOffset");
  var __RenderEditable__floatingCursorOffset_isSet = dart.privateName(editable, "_#RenderEditable#_floatingCursorOffset#isSet");
  var __RenderEditable__floatingCursorTextPosition = dart.privateName(editable, "_#RenderEditable#_floatingCursorTextPosition");
  var __RenderEditable__floatingCursorTextPosition_isSet = dart.privateName(editable, "_#RenderEditable#_floatingCursorTextPosition#isSet");
  var _maxScrollExtent = dart.privateName(editable, "_maxScrollExtent");
  var _clipBehavior = dart.privateName(editable, "_clipBehavior");
  var __RenderEditable__tap = dart.privateName(editable, "_#RenderEditable#_tap");
  var __RenderEditable__tap_isSet = dart.privateName(editable, "_#RenderEditable#_tap#isSet");
  var __RenderEditable__longPress = dart.privateName(editable, "_#RenderEditable#_longPress");
  var __RenderEditable__longPress_isSet = dart.privateName(editable, "_#RenderEditable#_longPress#isSet");
  var _lastTapDownPosition = dart.privateName(editable, "_lastTapDownPosition");
  var _lastSecondaryTapDownPosition = dart.privateName(editable, "_lastSecondaryTapDownPosition");
  var __RenderEditable__caretPrototype = dart.privateName(editable, "_#RenderEditable#_caretPrototype");
  var __RenderEditable__caretPrototype_isSet = dart.privateName(editable, "_#RenderEditable#_caretPrototype#isSet");
  var _relativeOrigin = dart.privateName(editable, "_relativeOrigin");
  var _previousOffset = dart.privateName(editable, "_previousOffset");
  var _resetOriginOnLeft = dart.privateName(editable, "_resetOriginOnLeft");
  var _resetOriginOnRight = dart.privateName(editable, "_resetOriginOnRight");
  var _resetOriginOnTop = dart.privateName(editable, "_resetOriginOnTop");
  var _resetOriginOnBottom = dart.privateName(editable, "_resetOriginOnBottom");
  var _resetFloatingCursorAnimationValue = dart.privateName(editable, "_resetFloatingCursorAnimationValue");
  var _promptRectPaint = dart.privateName(editable, "_promptRectPaint");
  var _clipRectLayer = dart.privateName(editable, "_clipRectLayer");
  var _textPainter = dart.privateName(editable, "_textPainter");
  var _cursorColor = dart.privateName(editable, "_cursorColor");
  var _backgroundCursorColor = dart.privateName(editable, "_backgroundCursorColor");
  var _showCursor = dart.privateName(editable, "_showCursor");
  var _maxLines = dart.privateName(editable, "_maxLines");
  var _minLines = dart.privateName(editable, "_minLines");
  var _expands = dart.privateName(editable, "_expands");
  var _selectionColor = dart.privateName(editable, "_selectionColor");
  var _selection = dart.privateName(editable, "_selection");
  var _offset = dart.privateName(editable, "_offset");
  var _cursorHeight = dart.privateName(editable, "_cursorHeight");
  var _cursorRadius = dart.privateName(editable, "_cursorRadius");
  var _paintCursorOnTop = dart.privateName(editable, "_paintCursorOnTop");
  var _cursorOffset = dart.privateName(editable, "_cursorOffset");
  var _floatingCursorAddedMargin = dart.privateName(editable, "_floatingCursorAddedMargin");
  var _enableInteractiveSelection = dart.privateName(editable, "_enableInteractiveSelection");
  var _devicePixelRatio = dart.privateName(editable, "_devicePixelRatio");
  var _selectionHeightStyle = dart.privateName(editable, "_selectionHeightStyle");
  var _selectionWidthStyle = dart.privateName(editable, "_selectionWidthStyle");
  var _startHandleLayerLink = dart.privateName(editable, "_startHandleLayerLink");
  var _endHandleLayerLink = dart.privateName(editable, "_endHandleLayerLink");
  var _obscuringCharacter = dart.privateName(editable, "_obscuringCharacter");
  var _obscureText = dart.privateName(editable, "_obscureText");
  var _promptRectRange = dart.privateName(editable, "_promptRectRange");
  var _caretPrototype = dart.privateName(editable, "_caretPrototype");
  var _updateSelectionExtentsVisibility = dart.privateName(editable, "_updateSelectionExtentsVisibility");
  var _handleSelectionChange = dart.privateName(editable, "_handleSelectionChange");
  var _handleMovement = dart.privateName(editable, "_handleMovement");
  var _handleShortcuts = dart.privateName(editable, "_handleShortcuts");
  var _handleDelete = dart.privateName(editable, "_handleDelete");
  var _handleKeyEvent = dart.privateName(editable, "_handleKeyEvent");
  var _plainText = dart.privateName(editable, "_plainText");
  var _selectWordAtOffset = dart.privateName(editable, "_selectWordAtOffset");
  var _selectLineAtOffset = dart.privateName(editable, "_selectLineAtOffset");
  var _floatingCursorOffset = dart.privateName(editable, "_floatingCursorOffset");
  var _floatingCursorTextPosition = dart.privateName(editable, "_floatingCursorTextPosition");
  var _caretMargin = dart.privateName(editable, "_caretMargin");
  var _isMultiline = dart.privateName(editable, "_isMultiline");
  var _handleSetSelection = dart.privateName(editable, "_handleSetSelection");
  var _handleMoveCursorBackwardByWord = dart.privateName(editable, "_handleMoveCursorBackwardByWord");
  var _handleMoveCursorBackwardByCharacter = dart.privateName(editable, "_handleMoveCursorBackwardByCharacter");
  var _handleMoveCursorForwardByWord = dart.privateName(editable, "_handleMoveCursorForwardByWord");
  var _handleMoveCursorForwardByCharacter = dart.privateName(editable, "_handleMoveCursorForwardByCharacter");
  var _getNextWord = dart.privateName(editable, "_getNextWord");
  var _getPreviousWord = dart.privateName(editable, "_getPreviousWord");
  var _onlyWhitespace = dart.privateName(editable, "_onlyWhitespace");
  var _tap = dart.privateName(editable, "_tap");
  var _handleTapDown = dart.privateName(editable, "_handleTapDown");
  var _handleTap = dart.privateName(editable, "_handleTap");
  var _longPress = dart.privateName(editable, "_longPress");
  var _handleLongPress = dart.privateName(editable, "_handleLongPress");
  var _viewportAxis = dart.privateName(editable, "_viewportAxis");
  var _name$1 = dart.privateName(basic_types, "_name");
  var _paintOffset = dart.privateName(editable, "_paintOffset");
  var _viewportExtent = dart.privateName(editable, "_viewportExtent");
  var _getMaxScrollExtent = dart.privateName(editable, "_getMaxScrollExtent");
  var _hasVisualOverflow = dart.privateName(editable, "_hasVisualOverflow");
  var _layoutText = dart.privateName(editable, "_layoutText");
  var _getPixelPerfectCursorOffset = dart.privateName(editable, "_getPixelPerfectCursorOffset");
  var _preferredHeight = dart.privateName(editable, "_preferredHeight");
  var _name$2 = dart.privateName(platform, "_name");
  var _computeCaretPrototype = dart.privateName(editable, "_computeCaretPrototype");
  var _paintCaret = dart.privateName(editable, "_paintCaret");
  var Radius_y = dart.privateName(ui, "Radius.y");
  var Radius_x = dart.privateName(ui, "Radius.x");
  var _paintFloatingCaret = dart.privateName(editable, "_paintFloatingCaret");
  var _paintSelection = dart.privateName(editable, "_paintSelection");
  var _paintPromptRectIfNeeded = dart.privateName(editable, "_paintPromptRectIfNeeded");
  var _paintContents = dart.privateName(editable, "_paintContents");
  var _paintHandleLayers = dart.privateName(editable, "_paintHandleLayers");
  const RenderBox_RelayoutWhenSystemFontsChangeMixin$36 = class RenderBox_RelayoutWhenSystemFontsChangeMixin extends box.RenderBox {};
  (RenderBox_RelayoutWhenSystemFontsChangeMixin$36.new = function() {
    RenderBox_RelayoutWhenSystemFontsChangeMixin$36.__proto__.new.call(this);
  }).prototype = RenderBox_RelayoutWhenSystemFontsChangeMixin$36.prototype;
  dart.applyMixin(RenderBox_RelayoutWhenSystemFontsChangeMixin$36, object.RelayoutWhenSystemFontsChangeMixin);
  editable.RenderEditable = class RenderEditable extends RenderBox_RelayoutWhenSystemFontsChangeMixin$36 {
    get onSelectionChanged() {
      return this[onSelectionChanged$];
Lubber's avatar
Lubber committed
577
    }
578 579
    set onSelectionChanged(value) {
      this[onSelectionChanged$] = value;
Lubber's avatar
Lubber committed
580
    }
581 582
    get onCaretChanged() {
      return this[onCaretChanged$];
Lubber's avatar
Lubber committed
583
    }
584 585
    set onCaretChanged(value) {
      this[onCaretChanged$] = value;
Lubber's avatar
Lubber committed
586
    }
587 588
    get ignorePointer() {
      return this[ignorePointer$];
Lubber's avatar
Lubber committed
589
    }
590 591
    set ignorePointer(value) {
      this[ignorePointer$] = value;
Lubber's avatar
Lubber committed
592
    }
593 594
    get textSelectionDelegate() {
      return this[textSelectionDelegate$];
Lubber's avatar
Lubber committed
595
    }
596 597
    set textSelectionDelegate(value) {
      this[textSelectionDelegate$] = value;
Lubber's avatar
Lubber committed
598
    }
599 600
    get textHeightBehavior() {
      return this[_textPainter].textHeightBehavior;
Lubber's avatar
Lubber committed
601
    }
602 603 604 605
    set textHeightBehavior(value) {
      if (dart.equals(this[_textPainter].textHeightBehavior, value)) return;
      this[_textPainter].textHeightBehavior = value;
      this.markNeedsTextLayout();
Lubber's avatar
Lubber committed
606
    }
607 608
    get textWidthBasis() {
      return this[_textPainter].textWidthBasis;
Lubber's avatar
Lubber committed
609
    }
610 611 612 613 614 615
    set textWidthBasis(value) {
      if (value == null) dart.nullFailed(I[0], 334, 37, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 335, 12, "value != null");
      if (this[_textPainter].textWidthBasis == value) return;
      this[_textPainter].textWidthBasis = value;
      this.markNeedsTextLayout();
Lubber's avatar
Lubber committed
616
    }
617 618
    get devicePixelRatio() {
      return this[_devicePixelRatio];
Lubber's avatar
Lubber committed
619
    }
620 621 622 623 624
    set devicePixelRatio(value) {
      if (value == null) dart.nullFailed(I[0], 347, 31, "value");
      if (this.devicePixelRatio == value) return;
      this[_devicePixelRatio] = value;
      this.markNeedsTextLayout();
Lubber's avatar
Lubber committed
625
    }
626 627
    get obscuringCharacter() {
      return this[_obscuringCharacter];
Lubber's avatar
Lubber committed
628
    }
629 630 631 632 633 634 635 636
    set obscuringCharacter(value) {
      if (value == null) dart.nullFailed(I[0], 359, 33, "value");
      if (this[_obscuringCharacter] == value) {
        return;
      }
      if (!(value != null && extensions['StringCharacters|get#characters'](value)[$length] === 1)) dart.assertFailed(null, I[0], 363, 12, "value != null && value.characters.length == 1");
      this[_obscuringCharacter] = value;
      this.markNeedsLayout();
Lubber's avatar
Lubber committed
637
    }
638 639
    get obscureText() {
      return this[_obscureText];
Lubber's avatar
Lubber committed
640
    }
641 642 643 644 645
    set obscureText(value) {
      if (value == null) dart.nullFailed(I[0], 371, 24, "value");
      if (this[_obscureText] == value) return;
      this[_obscureText] = value;
      this.markNeedsSemanticsUpdate();
Lubber's avatar
Lubber committed
646
    }
647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741
    get selectionStartInViewport() {
      return this[_selectionStartInViewport];
    }
    get selectionEndInViewport() {
      return this[_selectionEndInViewport];
    }
    [_updateSelectionExtentsVisibility](effectiveOffset) {
      if (effectiveOffset == null) dart.nullFailed(I[0], 413, 49, "effectiveOffset");
      if (!(this.selection != null)) dart.assertFailed(null, I[0], 414, 12, "selection != null");
      let visibleRegion = ui.Offset.zero['&'](this.size);
      let startOffset = this[_textPainter].getOffsetForCaret(new ui.TextPosition.new({offset: dart.nullCheck(this.selection).start, affinity: dart.nullCheck(this.selection).affinity}), this[_caretPrototype]);
      this[_selectionStartInViewport].value = visibleRegion.inflate(0.5).contains(startOffset['+'](effectiveOffset));
      let endOffset = this[_textPainter].getOffsetForCaret(new ui.TextPosition.new({offset: dart.nullCheck(this.selection).end, affinity: dart.nullCheck(this.selection).affinity}), this[_caretPrototype]);
      this[_selectionEndInViewport].value = visibleRegion.inflate(0.5).contains(endOffset['+'](effectiveOffset));
    }
    [_handleSelectionChange](nextSelection, cause) {
      if (nextSelection == null) dart.nullFailed(I[0], 458, 19, "nextSelection");
      if (cause == null) dart.nullFailed(I[0], 459, 27, "cause");
      let focusingEmpty = nextSelection.baseOffset === 0 && nextSelection.extentOffset === 0 && !dart.test(this.hasFocus);
      if (dart.equals(nextSelection, this.selection) && cause != editable.SelectionChangedCause.keyboard && !focusingEmpty) {
        return;
      }
      if (this.onSelectionChanged != null) {
        dart.nullCheck(this.onSelectionChanged)(nextSelection, this, cause);
      }
    }
    [_handleKeyEvent](keyEvent) {
      if (keyEvent == null) dart.nullFailed(I[0], 513, 36, "keyEvent");
      if (true) {
        return;
      }
      if (!raw_keyboard.RawKeyDownEvent.is(keyEvent) || this.onSelectionChanged == null) return;
      let keysPressed = keyboard_key.LogicalKeyboardKey.collapseSynonyms(raw_keyboard.RawKeyboard.instance.keysPressed);
      let key = keyEvent.logicalKey;
      let isMacOS = raw_keyboard_macos.RawKeyEventDataMacOs.is(keyEvent.data);
      if (!dart.test(editable.RenderEditable._nonModifierKeys.contains(key)) || dart.notNull(keysPressed.difference(isMacOS ? editable.RenderEditable._macOsModifierKeys : editable.RenderEditable._modifierKeys)[$length]) > 1 || dart.test(keysPressed.difference(editable.RenderEditable._interestingKeys)[$isNotEmpty])) {
        return;
      }
      if (!(this.selection != null)) dart.assertFailed(null, I[0], 536, 12, "selection != null");
      let isWordModifierPressed = isMacOS ? keyEvent.isAltPressed : keyEvent.isControlPressed;
      let isLineModifierPressed = isMacOS ? keyEvent.isMetaPressed : keyEvent.isAltPressed;
      let isShortcutModifierPressed = isMacOS ? keyEvent.isMetaPressed : keyEvent.isControlPressed;
      if (dart.test(editable.RenderEditable._movementKeys.contains(key))) {
        this[_handleMovement](key, {wordModifier: isWordModifierPressed, lineModifier: isLineModifierPressed, shift: keyEvent.isShiftPressed});
      } else if (dart.test(isShortcutModifierPressed) && dart.test(editable.RenderEditable._shortcutKeys.contains(key))) {
        this[_handleShortcuts](key);
      } else if (dart.equals(key, keyboard_key.LogicalKeyboardKey.delete)) {
        this[_handleDelete]({forward: true});
      } else if (dart.equals(key, keyboard_key.LogicalKeyboardKey.backspace)) {
        this[_handleDelete]({forward: false});
      }
    }
    static nextCharacter(index, string, includeWhitespace = true) {
      if (index == null) dart.nullFailed(I[0], 566, 32, "index");
      if (string == null) dart.nullFailed(I[0], 566, 46, "string");
      if (includeWhitespace == null) dart.nullFailed(I[0], 566, 60, "includeWhitespace");
      if (!(dart.notNull(index) >= 0 && dart.notNull(index) <= string.length)) dart.assertFailed(null, I[0], 567, 12, "index >= 0 && index <= string.length");
      if (index === string.length) {
        return string.length;
      }
      let count = 0;
      let remaining = extensions['StringCharacters|get#characters'](string).skipWhile(dart.fn(currentString => {
        if (currentString == null) dart.nullFailed(I[0], 573, 70, "currentString");
        if (count <= dart.notNull(index)) {
          count = count + currentString.length;
          return true;
        }
        if (dart.test(includeWhitespace)) {
          return false;
        }
        return editable._isWhitespace(currentString[$codeUnitAt](0));
      }, T.StringTobool()));
      return string.length - dart.toString(remaining).length;
    }
    static previousCharacter(index, string, includeWhitespace = true) {
      let t0;
      if (index == null) dart.nullFailed(I[0], 598, 36, "index");
      if (string == null) dart.nullFailed(I[0], 598, 50, "string");
      if (includeWhitespace == null) dart.nullFailed(I[0], 598, 64, "includeWhitespace");
      if (!(dart.notNull(index) >= 0 && dart.notNull(index) <= string.length)) dart.assertFailed(null, I[0], 599, 12, "index >= 0 && index <= string.length");
      if (index === 0) {
        return 0;
      }
      let count = 0;
      let lastNonWhitespace = null;
      for (let currentString of extensions['StringCharacters|get#characters'](string)) {
        if (!dart.test(includeWhitespace) && !dart.test(editable._isWhitespace(dart.toString(extensions['StringCharacters|get#characters'](currentString)[$first])[$codeUnitAt](0)))) {
          lastNonWhitespace = count;
        }
        if (count + currentString.length >= dart.notNull(index)) {
          return dart.test(includeWhitespace) ? count : (t0 = lastNonWhitespace, t0 == null ? 0 : t0);
        }
        count = count + currentString.length;
      }
      return 0;
Lubber's avatar
Lubber committed
742
    }
743 744 745 746 747 748 749 750 751
    [_handleMovement](key, opts) {
      if (key == null) dart.nullFailed(I[0], 620, 24, "key");
      let wordModifier = opts && 'wordModifier' in opts ? opts.wordModifier : null;
      if (wordModifier == null) dart.nullFailed(I[0], 621, 19, "wordModifier");
      let lineModifier = opts && 'lineModifier' in opts ? opts.lineModifier : null;
      if (lineModifier == null) dart.nullFailed(I[0], 622, 19, "lineModifier");
      let shift = opts && 'shift' in opts ? opts.shift : null;
      if (shift == null) dart.nullFailed(I[0], 623, 19, "shift");
      if (dart.test(wordModifier) && dart.test(lineModifier)) {
Lubber's avatar
Lubber committed
752 753
        return;
      }
754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895
      if (!(this.selection != null)) dart.assertFailed(null, I[0], 629, 12, "selection != null");
      let newSelection = dart.nullCheck(this.selection);
      let rightArrow = dart.equals(key, keyboard_key.LogicalKeyboardKey.arrowRight);
      let leftArrow = dart.equals(key, keyboard_key.LogicalKeyboardKey.arrowLeft);
      let upArrow = dart.equals(key, keyboard_key.LogicalKeyboardKey.arrowUp);
      let downArrow = dart.equals(key, keyboard_key.LogicalKeyboardKey.arrowDown);
      if ((rightArrow || leftArrow) && !(rightArrow && leftArrow)) {
        if (dart.test(wordModifier)) {
          if (leftArrow) {
            let startPoint = editable.RenderEditable.previousCharacter(newSelection.extentOffset, this[_plainText], false);
            let textSelection = this[_selectWordAtOffset](new ui.TextPosition.new({offset: startPoint}));
            newSelection = newSelection.copyWith({extentOffset: textSelection.baseOffset});
          } else {
            let startPoint = editable.RenderEditable.nextCharacter(newSelection.extentOffset, this[_plainText], false);
            let textSelection = this[_selectWordAtOffset](new ui.TextPosition.new({offset: startPoint}));
            newSelection = newSelection.copyWith({extentOffset: textSelection.extentOffset});
          }
        } else if (dart.test(lineModifier)) {
          if (leftArrow) {
            let startPoint = editable.RenderEditable.previousCharacter(newSelection.extentOffset, this[_plainText], false);
            let textSelection = this[_selectLineAtOffset](new ui.TextPosition.new({offset: startPoint}));
            newSelection = newSelection.copyWith({extentOffset: textSelection.baseOffset});
          } else {
            let startPoint = editable.RenderEditable.nextCharacter(newSelection.extentOffset, this[_plainText], false);
            let textSelection = this[_selectLineAtOffset](new ui.TextPosition.new({offset: startPoint}));
            newSelection = newSelection.copyWith({extentOffset: textSelection.extentOffset});
          }
        } else {
          if (rightArrow && dart.notNull(newSelection.extentOffset) < this[_plainText].length) {
            let nextExtent = null;
            if (!dart.test(shift) && !dart.test(wordModifier) && !dart.test(lineModifier) && newSelection.start != newSelection.end) {
              nextExtent = newSelection.end;
            } else {
              nextExtent = editable.RenderEditable.nextCharacter(newSelection.extentOffset, this[_plainText]);
            }
            let distance = dart.notNull(nextExtent) - dart.notNull(newSelection.extentOffset);
            newSelection = newSelection.copyWith({extentOffset: nextExtent});
            if (dart.test(shift)) {
              this[_cursorResetLocation] = dart.notNull(this[_cursorResetLocation]) + distance;
            }
          } else if (leftArrow && dart.notNull(newSelection.extentOffset) > 0) {
            let previousExtent = null;
            if (!dart.test(shift) && !dart.test(wordModifier) && !dart.test(lineModifier) && newSelection.start != newSelection.end) {
              previousExtent = newSelection.start;
            } else {
              previousExtent = editable.RenderEditable.previousCharacter(newSelection.extentOffset, this[_plainText]);
            }
            let distance = dart.notNull(newSelection.extentOffset) - dart.notNull(previousExtent);
            newSelection = newSelection.copyWith({extentOffset: previousExtent});
            if (dart.test(shift)) {
              this[_cursorResetLocation] = dart.notNull(this[_cursorResetLocation]) - distance;
            }
          }
        }
      }
      if (downArrow || upArrow) {
        if (dart.test(lineModifier)) {
          if (upArrow) {
            let upperOffset = math.max(core.int, 0, math.max(core.int, newSelection.baseOffset, newSelection.extentOffset));
            newSelection = new text_editing.TextSelection.new({baseOffset: dart.test(shift) ? upperOffset : 0, extentOffset: 0});
          } else {
            let lowerOffset = math.max(core.int, 0, math.min(core.int, newSelection.baseOffset, newSelection.extentOffset));
            newSelection = new text_editing.TextSelection.new({baseOffset: dart.test(shift) ? lowerOffset : this[_plainText].length, extentOffset: this[_plainText].length});
          }
        } else {
          let preferredLineHeight = this[_textPainter].preferredLineHeight;
          let verticalOffset = upArrow ? -0.5 * dart.notNull(preferredLineHeight) : 1.5 * dart.notNull(preferredLineHeight);
          let caretOffset = this[_textPainter].getOffsetForCaret(new ui.TextPosition.new({offset: newSelection.extentOffset}), this[_caretPrototype]);
          let caretOffsetTranslated = caretOffset.translate(0.0, verticalOffset);
          let position = this[_textPainter].getPositionForOffset(caretOffsetTranslated);
          if (position.offset == newSelection.extentOffset) {
            if (downArrow) {
              newSelection = newSelection.copyWith({extentOffset: this[_plainText].length});
            } else if (upArrow) {
              newSelection = newSelection.copyWith({extentOffset: 0});
            }
            this[_wasSelectingVerticallyWithKeyboard] = shift;
          } else if (dart.test(this[_wasSelectingVerticallyWithKeyboard]) && dart.test(shift)) {
            newSelection = newSelection.copyWith({extentOffset: this[_cursorResetLocation]});
            this[_wasSelectingVerticallyWithKeyboard] = false;
          } else {
            newSelection = newSelection.copyWith({extentOffset: position.offset});
            this[_cursorResetLocation] = newSelection.extentOffset;
          }
        }
      }
      if (!dart.test(shift) || !dart.test(this.selectionEnabled)) {
        let newOffset = newSelection.extentOffset;
        if (!dart.test(dart.nullCheck(this.selection).isCollapsed)) {
          if (leftArrow) {
            newOffset = dart.notNull(newSelection.baseOffset) < dart.notNull(newSelection.extentOffset) ? newSelection.baseOffset : newSelection.extentOffset;
          } else if (rightArrow) {
            newOffset = dart.notNull(newSelection.baseOffset) > dart.notNull(newSelection.extentOffset) ? newSelection.baseOffset : newSelection.extentOffset;
          }
        }
        newSelection = new text_editing.TextSelection.fromPosition(new ui.TextPosition.new({offset: newOffset}));
      }
      this[_handleSelectionChange](newSelection, editable.SelectionChangedCause.keyboard);
      this.textSelectionDelegate.textEditingValue = this.textSelectionDelegate.textEditingValue.copyWith({selection: newSelection});
    }
    [_handleShortcuts](key) {
      if (key == null) dart.nullFailed(I[0], 795, 52, "key");
      return async.async(dart.void, (function* _handleShortcuts() {
        let selection = this.textSelectionDelegate.textEditingValue.selection;
        let text = this.textSelectionDelegate.textEditingValue.text;
        if (!(selection != null)) dart.assertFailed(null, I[0], 798, 12, "selection != null");
        if (!dart.test(editable.RenderEditable._shortcutKeys.contains(key))) dart.assertFailed("shortcut key " + dart.str(key) + " not recognized.", I[0], 799, 12, "_shortcutKeys.contains(key)");
        if (dart.equals(key, keyboard_key.LogicalKeyboardKey.keyC)) {
          if (!dart.test(selection.isCollapsed)) {
            clipboard.Clipboard.setData(new clipboard.ClipboardData.new({text: selection.textInside(text)}));
          }
          return;
        }
        let value = null;
        if (dart.equals(key, keyboard_key.LogicalKeyboardKey.keyX) && !dart.test(this[_readOnly])) {
          if (!dart.test(selection.isCollapsed)) {
            clipboard.Clipboard.setData(new clipboard.ClipboardData.new({text: selection.textInside(text)}));
            value = new text_input.TextEditingValue.new({text: dart.notNull(selection.textBefore(text)) + dart.notNull(selection.textAfter(text)), selection: new text_editing.TextSelection.collapsed({offset: math.min(core.int, selection.start, selection.end)})});
          }
        } else if (dart.equals(key, keyboard_key.LogicalKeyboardKey.keyV) && !dart.test(this[_readOnly])) {
          let data = (yield clipboard.Clipboard.getData("text/plain"));
          if (data != null) {
            value = new text_input.TextEditingValue.new({text: dart.notNull(selection.textBefore(text)) + dart.nullCheck(data.text) + dart.notNull(selection.textAfter(text)), selection: new text_editing.TextSelection.collapsed({offset: math.min(core.int, selection.start, selection.end) + dart.nullCheck(data.text).length})});
          }
        } else if (dart.equals(key, keyboard_key.LogicalKeyboardKey.keyA)) {
          value = new text_input.TextEditingValue.new({text: text, selection: selection.copyWith({baseOffset: 0, extentOffset: this.textSelectionDelegate.textEditingValue.text.length})});
        }
        if (value != null) {
          if (!dart.equals(this.textSelectionDelegate.textEditingValue.selection, value.selection)) {
            this[_handleSelectionChange](value.selection, editable.SelectionChangedCause.keyboard);
          }
          this.textSelectionDelegate.textEditingValue = value;
        }
      }).bind(this));
    }
    [_handleDelete](opts) {
      let forward = opts && 'forward' in opts ? opts.forward : null;
      if (forward == null) dart.nullFailed(I[0], 848, 38, "forward");
      let selection = this.textSelectionDelegate.textEditingValue.selection;
      let text = this.textSelectionDelegate.textEditingValue.text;
      if (!(this[_selection] != null)) dart.assertFailed(null, I[0], 851, 12, "_selection != null");
      if (dart.test(this[_readOnly]) || !dart.test(selection.isValid)) {
Lubber's avatar
Lubber committed
896 897
        return;
      }
898 899 900 901 902 903 904 905
      let textBefore = selection.textBefore(text);
      let textAfter = selection.textAfter(text);
      let cursorPosition = math.min(core.int, selection.start, selection.end);
      if (dart.test(selection.isCollapsed)) {
        if (!dart.test(forward) && textBefore[$isNotEmpty]) {
          let characterBoundary = editable.RenderEditable.previousCharacter(textBefore.length, textBefore);
          textBefore = textBefore[$substring](0, characterBoundary);
          cursorPosition = characterBoundary;
Lubber's avatar
Lubber committed
906
        }
907 908 909 910 911 912 913 914 915 916
        if (dart.test(forward) && textAfter[$isNotEmpty]) {
          let deleteCount = editable.RenderEditable.nextCharacter(0, textAfter);
          textAfter = textAfter[$substring](deleteCount);
        }
      }
      let newSelection = new text_editing.TextSelection.collapsed({offset: cursorPosition});
      if (!dart.equals(selection, newSelection)) {
        this[_handleSelectionChange](newSelection, editable.SelectionChangedCause.keyboard);
      }
      this.textSelectionDelegate.textEditingValue = new text_input.TextEditingValue.new({text: dart.notNull(textBefore) + dart.notNull(textAfter), selection: newSelection});
Lubber's avatar
Lubber committed
917
    }
918 919 920 921
    markNeedsTextLayout() {
      this[_textLayoutLastMaxWidth] = null;
      this[_textLayoutLastMinWidth] = null;
      this.markNeedsLayout();
Lubber's avatar
Lubber committed
922
    }
923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363
    systemFontsDidChange() {
      super.systemFontsDidChange();
      this[_textPainter].markNeedsLayout();
      this[_textLayoutLastMaxWidth] = null;
      this[_textLayoutLastMinWidth] = null;
    }
    get [_plainText]() {
      this[_cachedPlainText] == null ? this[_cachedPlainText] = dart.nullCheck(this[_textPainter].text).toPlainText() : null;
      return dart.nullCheck(this[_cachedPlainText]);
    }
    get text() {
      return T.TextSpanN().as(this[_textPainter].text);
    }
    set text(value) {
      if (dart.equals(this[_textPainter].text, value)) return;
      this[_textPainter].text = value;
      this[_cachedPlainText] = null;
      this.markNeedsTextLayout();
      this.markNeedsSemanticsUpdate();
    }
    get textAlign() {
      return this[_textPainter].textAlign;
    }
    set textAlign(value) {
      if (value == null) dart.nullFailed(I[0], 928, 27, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 929, 12, "value != null");
      if (this[_textPainter].textAlign == value) return;
      this[_textPainter].textAlign = value;
      this.markNeedsTextLayout();
    }
    get textDirection() {
      return dart.nullCheck(this[_textPainter].textDirection);
    }
    set textDirection(value) {
      if (value == null) dart.nullFailed(I[0], 953, 35, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 954, 12, "value != null");
      if (this[_textPainter].textDirection == value) return;
      this[_textPainter].textDirection = value;
      this.markNeedsTextLayout();
      this.markNeedsSemanticsUpdate();
    }
    get locale() {
      return this[_textPainter].locale;
    }
    set locale(value) {
      if (dart.equals(this[_textPainter].locale, value)) return;
      this[_textPainter].locale = value;
      this.markNeedsTextLayout();
    }
    get strutStyle() {
      return this[_textPainter].strutStyle;
    }
    set strutStyle(value) {
      if (dart.equals(this[_textPainter].strutStyle, value)) return;
      this[_textPainter].strutStyle = value;
      this.markNeedsTextLayout();
    }
    get cursorColor() {
      return this[_cursorColor];
    }
    set cursorColor(value) {
      if (dart.equals(this[_cursorColor], value)) return;
      this[_cursorColor] = value;
      this.markNeedsPaint();
    }
    get backgroundCursorColor() {
      return this[_backgroundCursorColor];
    }
    set backgroundCursorColor(value) {
      if (dart.equals(this.backgroundCursorColor, value)) return;
      this[_backgroundCursorColor] = value;
      this.markNeedsPaint();
    }
    get showCursor() {
      return this[_showCursor];
    }
    set showCursor(value) {
      if (value == null) dart.nullFailed(I[0], 1016, 38, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1017, 12, "value != null");
      if (dart.equals(this[_showCursor], value)) return;
      if (dart.test(this.attached)) this[_showCursor].removeListener(dart.bind(this, 'markNeedsPaint'));
      this[_showCursor] = value;
      if (dart.test(this.attached)) this[_showCursor].addListener(dart.bind(this, 'markNeedsPaint'));
      this.markNeedsPaint();
    }
    get hasFocus() {
      return this[_hasFocus];
    }
    set hasFocus(value) {
      if (value == null) dart.nullFailed(I[0], 1032, 21, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1033, 12, "value != null");
      if (this[_hasFocus] == value) return;
      this[_hasFocus] = value;
      if (dart.test(this[_hasFocus])) {
        if (!!dart.test(this[_listenerAttached])) dart.assertFailed(null, I[0], 1038, 14, "!_listenerAttached");
        raw_keyboard.RawKeyboard.instance.addListener(dart.bind(this, _handleKeyEvent));
        this[_listenerAttached] = true;
      } else {
        if (!dart.test(this[_listenerAttached])) dart.assertFailed(null, I[0], 1042, 14, "_listenerAttached");
        raw_keyboard.RawKeyboard.instance.removeListener(dart.bind(this, _handleKeyEvent));
        this[_listenerAttached] = false;
      }
      this.markNeedsSemanticsUpdate();
    }
    get forceLine() {
      return this[_forceLine];
    }
    set forceLine(value) {
      if (value == null) dart.nullFailed(I[0], 1052, 22, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1053, 12, "value != null");
      if (this[_forceLine] == value) return;
      this[_forceLine] = value;
      this.markNeedsLayout();
    }
    get readOnly() {
      return this[_readOnly];
    }
    set readOnly(value) {
      if (value == null) dart.nullFailed(I[0], 1063, 21, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1064, 12, "value != null");
      if (this[_readOnly] == value) return;
      this[_readOnly] = value;
      this.markNeedsSemanticsUpdate();
    }
    get maxLines() {
      return this[_maxLines];
    }
    set maxLines(value) {
      if (!(value == null || dart.notNull(value) > 0)) dart.assertFailed(null, I[0], 1085, 12, "value == null || value > 0");
      if (this.maxLines == value) return;
      this[_maxLines] = value;
      this.markNeedsTextLayout();
    }
    get minLines() {
      return this[_minLines];
    }
    set minLines(value) {
      if (!(value == null || dart.notNull(value) > 0)) dart.assertFailed(null, I[0], 1097, 12, "value == null || value > 0");
      if (this.minLines == value) return;
      this[_minLines] = value;
      this.markNeedsTextLayout();
    }
    get expands() {
      return this[_expands];
    }
    set expands(value) {
      if (value == null) dart.nullFailed(I[0], 1107, 20, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1108, 12, "value != null");
      if (this.expands == value) return;
      this[_expands] = value;
      this.markNeedsTextLayout();
    }
    get selectionColor() {
      return this[_selectionColor];
    }
    set selectionColor(value) {
      if (dart.equals(this[_selectionColor], value)) return;
      this[_selectionColor] = value;
      this.markNeedsPaint();
    }
    get textScaleFactor() {
      return this[_textPainter].textScaleFactor;
    }
    set textScaleFactor(value) {
      if (value == null) dart.nullFailed(I[0], 1130, 30, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1131, 12, "value != null");
      if (this[_textPainter].textScaleFactor == value) return;
      this[_textPainter].textScaleFactor = value;
      this.markNeedsTextLayout();
    }
    get selection() {
      return this[_selection];
    }
    set selection(value) {
      if (dart.equals(this[_selection], value)) return;
      this[_selection] = value;
      this[_selectionRects] = null;
      this.markNeedsPaint();
      this.markNeedsSemanticsUpdate();
    }
    get offset() {
      return this[_offset];
    }
    set offset(value) {
      if (value == null) dart.nullFailed(I[0], 1164, 29, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1165, 12, "value != null");
      if (dart.equals(this[_offset], value)) return;
      if (dart.test(this.attached)) this[_offset].removeListener(dart.bind(this, 'markNeedsPaint'));
      this[_offset] = value;
      if (dart.test(this.attached)) this[_offset].addListener(dart.bind(this, 'markNeedsPaint'));
      this.markNeedsLayout();
    }
    get cursorWidth() {
      return this[_cursorWidth];
    }
    set cursorWidth(value) {
      if (value == null) dart.nullFailed(I[0], 1179, 26, "value");
      if (this[_cursorWidth] == value) return;
      this[_cursorWidth] = value;
      this.markNeedsLayout();
    }
    get cursorHeight() {
      let t0;
      t0 = this[_cursorHeight];
      return t0 == null ? this.preferredLineHeight : t0;
    }
    set cursorHeight(value) {
      if (this[_cursorHeight] == value) return;
      this[_cursorHeight] = value;
      this.markNeedsLayout();
    }
    get paintCursorAboveText() {
      return this[_paintCursorOnTop];
    }
    set paintCursorAboveText(value) {
      if (value == null) dart.nullFailed(I[0], 1210, 33, "value");
      if (this[_paintCursorOnTop] == value) return;
      this[_paintCursorOnTop] = value;
      this.markNeedsLayout();
    }
    get cursorOffset() {
      return this[_cursorOffset];
    }
    set cursorOffset(value) {
      if (dart.equals(this[_cursorOffset], value)) return;
      this[_cursorOffset] = value;
      this.markNeedsLayout();
    }
    get cursorRadius() {
      return this[_cursorRadius];
    }
    set cursorRadius(value) {
      if (dart.equals(this[_cursorRadius], value)) return;
      this[_cursorRadius] = value;
      this.markNeedsPaint();
    }
    get startHandleLayerLink() {
      return this[_startHandleLayerLink];
    }
    set startHandleLayerLink(value) {
      if (value == null) dart.nullFailed(I[0], 1252, 38, "value");
      if (dart.equals(this[_startHandleLayerLink], value)) return;
      this[_startHandleLayerLink] = value;
      this.markNeedsPaint();
    }
    get endHandleLayerLink() {
      return this[_endHandleLayerLink];
    }
    set endHandleLayerLink(value) {
      if (value == null) dart.nullFailed(I[0], 1265, 36, "value");
      if (dart.equals(this[_endHandleLayerLink], value)) return;
      this[_endHandleLayerLink] = value;
      this.markNeedsPaint();
    }
    get floatingCursorAddedMargin() {
      return this[_floatingCursorAddedMargin];
    }
    set floatingCursorAddedMargin(value) {
      if (value == null) dart.nullFailed(I[0], 1278, 44, "value");
      if (dart.equals(this[_floatingCursorAddedMargin], value)) return;
      this[_floatingCursorAddedMargin] = value;
      this.markNeedsPaint();
    }
    set [_floatingCursorOffset](t0) {
      if (t0 == null) dart.nullFailed(I[0], 1286, 15, "null");
      this[__RenderEditable__floatingCursorOffset_isSet] = true;
      this[__RenderEditable__floatingCursorOffset] = t0;
    }
    get [_floatingCursorOffset]() {
      let t1;
      return dart.test(this[__RenderEditable__floatingCursorOffset_isSet]) ? (t1 = this[__RenderEditable__floatingCursorOffset], t1) : dart.throw(new _internal.LateError.fieldNI("_floatingCursorOffset"));
    }
    set [_floatingCursorTextPosition](t1) {
      if (t1 == null) dart.nullFailed(I[0], 1287, 21, "null");
      this[__RenderEditable__floatingCursorTextPosition_isSet] = true;
      this[__RenderEditable__floatingCursorTextPosition] = t1;
    }
    get [_floatingCursorTextPosition]() {
      let t2;
      return dart.test(this[__RenderEditable__floatingCursorTextPosition_isSet]) ? (t2 = this[__RenderEditable__floatingCursorTextPosition], t2) : dart.throw(new _internal.LateError.fieldNI("_floatingCursorTextPosition"));
    }
    get selectionHeightStyle() {
      return this[_selectionHeightStyle];
    }
    set selectionHeightStyle(value) {
      if (value == null) dart.nullFailed(I[0], 1294, 46, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1295, 12, "value != null");
      if (this[_selectionHeightStyle] == value) return;
      this[_selectionHeightStyle] = value;
      this.markNeedsPaint();
    }
    get selectionWidthStyle() {
      return this[_selectionWidthStyle];
    }
    set selectionWidthStyle(value) {
      if (value == null) dart.nullFailed(I[0], 1307, 44, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1308, 12, "value != null");
      if (this[_selectionWidthStyle] == value) return;
      this[_selectionWidthStyle] = value;
      this.markNeedsPaint();
    }
    get enableInteractiveSelection() {
      return this[_enableInteractiveSelection];
    }
    set enableInteractiveSelection(value) {
      if (this[_enableInteractiveSelection] == value) return;
      this[_enableInteractiveSelection] = value;
      this.markNeedsTextLayout();
      this.markNeedsSemanticsUpdate();
    }
    get selectionEnabled() {
      let t2;
      t2 = this.enableInteractiveSelection;
      return t2 == null ? !dart.test(this.obscureText) : t2;
    }
    get promptRectColor() {
      return this[_promptRectPaint].color;
    }
    set promptRectColor(newValue) {
      if (newValue == null) {
        this.setPromptRectRange(null);
        return;
      }
      if (dart.equals(this.promptRectColor, newValue)) return;
      this[_promptRectPaint].color = newValue;
      if (this[_promptRectRange] != null) this.markNeedsPaint();
    }
    setPromptRectRange(newRange) {
      if (dart.equals(this[_promptRectRange], newRange)) return;
      this[_promptRectRange] = newRange;
      this.markNeedsPaint();
    }
    get maxScrollExtent() {
      return this[_maxScrollExtent];
    }
    get [_caretMargin]() {
      return 1 + dart.notNull(this.cursorWidth);
    }
    get clipBehavior() {
      return this[_clipBehavior];
    }
    set clipBehavior(value) {
      if (value == null) dart.nullFailed(I[0], 1414, 25, "value");
      if (!(value != null)) dart.assertFailed(null, I[0], 1415, 12, "value != null");
      if (value != this[_clipBehavior]) {
        this[_clipBehavior] = value;
        this.markNeedsPaint();
        this.markNeedsSemanticsUpdate();
      }
    }
    describeSemanticsConfiguration(config) {
      let t2, t2$, t2$0, t2$1;
      if (config == null) dart.nullFailed(I[0], 1424, 62, "config");
      super.describeSemanticsConfiguration(config);
      t2 = config;
      (() => {
        t2.value = dart.test(this.obscureText) ? this.obscuringCharacter[$times](this[_plainText].length) : this[_plainText];
        t2.isObscured = this.obscureText;
        t2.isMultiline = this[_isMultiline];
        t2.textDirection = this.textDirection;
        t2.isFocused = this.hasFocus;
        t2.isTextField = true;
        t2.isReadOnly = this.readOnly;
        return t2;
      })();
      if (dart.test(this.hasFocus) && dart.test(this.selectionEnabled)) config.onSetSelection = dart.bind(this, _handleSetSelection);
      if (dart.test(this.selectionEnabled) && (t2$ = this.selection, t2$ == null ? null : t2$.isValid) === true) {
        config.textSelection = this.selection;
        if (this[_textPainter].getOffsetBefore(dart.nullCheck(this.selection).extentOffset) != null) {
          t2$0 = config;
          (() => {
            t2$0.onMoveCursorBackwardByWord = dart.bind(this, _handleMoveCursorBackwardByWord);
            t2$0.onMoveCursorBackwardByCharacter = dart.bind(this, _handleMoveCursorBackwardByCharacter);
            return t2$0;
          })();
        }
        if (this[_textPainter].getOffsetAfter(dart.nullCheck(this.selection).extentOffset) != null) {
          t2$1 = config;
          (() => {
            t2$1.onMoveCursorForwardByWord = dart.bind(this, _handleMoveCursorForwardByWord);
            t2$1.onMoveCursorForwardByCharacter = dart.bind(this, _handleMoveCursorForwardByCharacter);
            return t2$1;
          })();
        }
      }
    }
    [_handleSetSelection](selection) {
      if (selection == null) dart.nullFailed(I[0], 1460, 42, "selection");
      this[_handleSelectionChange](selection, editable.SelectionChangedCause.keyboard);
    }
    [_handleMoveCursorForwardByCharacter](extentSelection) {
      if (extentSelection == null) dart.nullFailed(I[0], 1464, 49, "extentSelection");
      if (!(this.selection != null)) dart.assertFailed(null, I[0], 1465, 12, "selection != null");
      let extentOffset = this[_textPainter].getOffsetAfter(dart.nullCheck(this.selection).extentOffset);
      if (extentOffset == null) return;
      let baseOffset = !dart.test(extentSelection) ? extentOffset : dart.nullCheck(this.selection).baseOffset;
      this[_handleSelectionChange](new text_editing.TextSelection.new({baseOffset: baseOffset, extentOffset: extentOffset}), editable.SelectionChangedCause.keyboard);
    }
    [_handleMoveCursorBackwardByCharacter](extentSelection) {
      if (extentSelection == null) dart.nullFailed(I[0], 1475, 50, "extentSelection");
      if (!(this.selection != null)) dart.assertFailed(null, I[0], 1476, 12, "selection != null");
      let extentOffset = this[_textPainter].getOffsetBefore(dart.nullCheck(this.selection).extentOffset);
      if (extentOffset == null) return;
      let baseOffset = !dart.test(extentSelection) ? extentOffset : dart.nullCheck(this.selection).baseOffset;
      this[_handleSelectionChange](new text_editing.TextSelection.new({baseOffset: baseOffset, extentOffset: extentOffset}), editable.SelectionChangedCause.keyboard);
    }
    [_handleMoveCursorForwardByWord](extentSelection) {
      if (extentSelection == null) dart.nullFailed(I[0], 1486, 44, "extentSelection");
      if (!(this.selection != null)) dart.assertFailed(null, I[0], 1487, 12, "selection != null");
      let currentWord = this[_textPainter].getWordBoundary(dart.nullCheck(this.selection).extent);
      let nextWord = this[_getNextWord](currentWord.end);
      if (nextWord == null) return;
      let baseOffset = dart.test(extentSelection) ? dart.nullCheck(this.selection).baseOffset : nextWord.start;
      this[_handleSelectionChange](new text_editing.TextSelection.new({baseOffset: baseOffset, extentOffset: nextWord.start}), editable.SelectionChangedCause.keyboard);
    }
    [_handleMoveCursorBackwardByWord](extentSelection) {
      if (extentSelection == null) dart.nullFailed(I[0], 1502, 45, "extentSelection");
      if (!(this.selection != null)) dart.assertFailed(null, I[0], 1503, 12, "selection != null");
      let currentWord = this[_textPainter].getWordBoundary(dart.nullCheck(this.selection).extent);
      let previousWord = this[_getPreviousWord](dart.notNull(currentWord.start) - 1);
      if (previousWord == null) return;
      let baseOffset = dart.test(extentSelection) ? dart.nullCheck(this.selection).baseOffset : previousWord.start;
      this[_handleSelectionChange](new text_editing.TextSelection.new({baseOffset: baseOffset, extentOffset: previousWord.start}), editable.SelectionChangedCause.keyboard);
    }
    [_getNextWord](offset) {
      if (offset == null) dart.nullFailed(I[0], 1518, 31, "offset");
      while (true) {
        let range = this[_textPainter].getWordBoundary(new ui.TextPosition.new({offset: offset}));
        if (range == null || !dart.test(range.isValid) || dart.test(range.isCollapsed)) return null;
        if (!dart.test(this[_onlyWhitespace](range))) return range;
        offset = range.end;
      }
    }
    [_getPreviousWord](offset) {
      if (offset == null) dart.nullFailed(I[0], 1529, 35, "offset");
      while (dart.notNull(offset) >= 0) {
        let range = this[_textPainter].getWordBoundary(new ui.TextPosition.new({offset: offset}));
        if (range == null || !dart.test(range.isValid) || dart.test(range.isCollapsed)) return null;
        if (!dart.test(this[_onlyWhitespace](range))) return range;
        offset = dart.notNull(range.start) - 1;
      }
Lubber's avatar
Lubber committed
1364
      return null;
1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455
    }
    [_onlyWhitespace](range) {
      if (range == null) dart.nullFailed(I[0], 1547, 34, "range");
      for (let i = range.start; dart.notNull(i) < dart.notNull(range.end); i = dart.notNull(i) + 1) {
        let codeUnit = dart.nullCheck(dart.nullCheck(this.text).codeUnitAt(i));
        if (!dart.test(editable._isWhitespace(codeUnit))) {
          return false;
        }
      }
      return true;
    }
    attach(owner) {
      let t2, t2$;
      object.PipelineOwner.as(owner);
      if (owner == null) dart.nullFailed(I[0], 1558, 29, "owner");
      super.attach(owner);
      this[_tap] = (t2 = new tap.TapGestureRecognizer.new({debugOwner: this}), (() => {
        t2.onTapDown = dart.bind(this, _handleTapDown);
        t2.onTap = dart.bind(this, _handleTap);
        return t2;
      })());
      this[_longPress] = (t2$ = new long_press.LongPressGestureRecognizer.new({debugOwner: this}), (() => {
        t2$.onLongPress = dart.bind(this, _handleLongPress);
        return t2$;
      })());
      this[_offset].addListener(dart.bind(this, 'markNeedsPaint'));
      this[_showCursor].addListener(dart.bind(this, 'markNeedsPaint'));
    }
    detach() {
      this[_tap].dispose();
      this[_longPress].dispose();
      this[_offset].removeListener(dart.bind(this, 'markNeedsPaint'));
      this[_showCursor].removeListener(dart.bind(this, 'markNeedsPaint'));
      if (dart.test(this[_listenerAttached])) raw_keyboard.RawKeyboard.instance.removeListener(dart.bind(this, _handleKeyEvent));
      super.detach();
    }
    get [_isMultiline]() {
      return this.maxLines !== 1;
    }
    get [_viewportAxis]() {
      return dart.test(this[_isMultiline]) ? basic_types.Axis.vertical : basic_types.Axis.horizontal;
    }
    get [_paintOffset]() {
      switch (this[_viewportAxis]) {
        case C[15] || CT.C15:
        {
          return new ui.Offset.new(-dart.notNull(this.offset.pixels), 0.0);
        }
        case C[16] || CT.C16:
        {
          return new ui.Offset.new(0.0, -dart.notNull(this.offset.pixels));
        }
        default:
        {
          dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
        }
      }
    }
    get [_viewportExtent]() {
      if (!dart.test(this.hasSize)) dart.assertFailed(null, I[0], 1593, 12, "hasSize");
      switch (this[_viewportAxis]) {
        case C[15] || CT.C15:
        {
          return this.size.width;
        }
        case C[16] || CT.C16:
        {
          return this.size.height;
        }
        default:
        {
          dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
        }
      }
    }
    [_getMaxScrollExtent](contentSize) {
      if (contentSize == null) dart.nullFailed(I[0], 1602, 35, "contentSize");
      if (!dart.test(this.hasSize)) dart.assertFailed(null, I[0], 1603, 12, "hasSize");
      switch (this[_viewportAxis]) {
        case C[15] || CT.C15:
        {
          return math.max(core.double, 0.0, dart.notNull(contentSize.width) - dart.notNull(this.size.width));
        }
        case C[16] || CT.C16:
        {
          return math.max(core.double, 0.0, dart.notNull(contentSize.height) - dart.notNull(this.size.height));
        }
        default:
        {
          dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
        }
      }
    }
    get [_hasVisualOverflow]() {
      return dart.notNull(this[_maxScrollExtent]) > 0 || !dart.equals(this[_paintOffset], ui.Offset.zero);
    }
    getEndpointsForSelection(selection) {
      if (selection == null) dart.nullFailed(I[0], 1628, 67, "selection");
      if (!(this.constraints != null)) dart.assertFailed(null, I[0], 1629, 12, "constraints != null");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      let paintOffset = this[_paintOffset];
      let boxes = dart.test(selection.isCollapsed) ? T.JSArrayOfTextBox().of([]) : this[_textPainter].getBoxesForSelection(selection);
      if (dart.test(boxes[$isEmpty])) {
        let caretOffset = this[_textPainter].getOffsetForCaret(selection.extent, this[_caretPrototype]);
        let start = new ui.Offset.new(0.0, this.preferredLineHeight)['+'](caretOffset)['+'](paintOffset);
        return T.JSArrayOfTextSelectionPoint().of([new editable.TextSelectionPoint.new(start, null)]);
      } else {
        let start = new ui.Offset.new(boxes[$first].start, boxes[$first].bottom)['+'](paintOffset);
        let end = new ui.Offset.new(boxes[$last].end, boxes[$last].bottom)['+'](paintOffset);
        return T.JSArrayOfTextSelectionPoint().of([new editable.TextSelectionPoint.new(start, boxes[$first].direction), new editable.TextSelectionPoint.new(end, boxes[$last].direction)]);
      }
    }
    getRectForComposingRange(range) {
      let t2;
      if (range == null) dart.nullFailed(I[0], 1660, 44, "range");
      if (!(this.constraints != null)) dart.assertFailed(null, I[0], 1661, 12, "constraints != null");
      if (!dart.test(range.isValid) || dart.test(range.isCollapsed)) return null;
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      let boxes = this[_textPainter].getBoxesForSelection(new text_editing.TextSelection.new({baseOffset: range.start, extentOffset: range.end}));
      t2 = boxes[$fold](T.RectN(), null, dart.fn((accum, incoming) => {
        let t2, t2$;
        if (incoming == null) dart.nullFailed(I[0], 1672, 29, "incoming");
        t2$ = (t2 = accum, t2 == null ? null : t2.expandToInclude(incoming.toRect()));
        return t2$ == null ? incoming.toRect() : t2$;
      }, T.RectNAndTextBoxToRect()));
      return t2 == null ? null : t2.shift(this[_paintOffset]);
    }
    getPositionForPoint(globalPosition) {
      if (globalPosition == null) dart.nullFailed(I[0], 1684, 43, "globalPosition");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      globalPosition = globalPosition['+'](this[_paintOffset]._negate());
      return this[_textPainter].getPositionForOffset(this.globalToLocal(globalPosition));
    }
    getLocalRectForCaret(caretPosition) {
      if (caretPosition == null) dart.nullFailed(I[0], 1701, 42, "caretPosition");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      let caretOffset = this[_textPainter].getOffsetForCaret(caretPosition, this[_caretPrototype]);
      let rect = new ui.Rect.fromLTWH(0.0, 0.0, this.cursorWidth, this.cursorHeight).shift(caretOffset['+'](this[_paintOffset]));
      if (this[_cursorOffset] != null) rect = rect.shift(dart.nullCheck(this[_cursorOffset]));
      return rect.shift(this[_getPixelPerfectCursorOffset](rect));
    }
    computeMinIntrinsicWidth(height) {
      if (height == null) dart.nullFailed(I[0], 1714, 42, "height");
      this[_layoutText]({maxWidth: 1 / 0});
      return this[_textPainter].minIntrinsicWidth;
    }
    computeMaxIntrinsicWidth(height) {
      if (height == null) dart.nullFailed(I[0], 1720, 42, "height");
      this[_layoutText]({maxWidth: 1 / 0});
      return dart.notNull(this[_textPainter].maxIntrinsicWidth) + dart.notNull(this.cursorWidth);
    }
    get preferredLineHeight() {
      return this[_textPainter].preferredLineHeight;
    }
    [_preferredHeight](width) {
      if (width == null) dart.nullFailed(I[0], 1729, 34, "width");
      let lockedMax = this.maxLines != null && this.minLines == null;
      let lockedBoth = this.minLines != null && this.minLines == this.maxLines;
      let singleLine = this.maxLines === 1;
      if (singleLine || lockedMax || lockedBoth) {
        return dart.notNull(this.preferredLineHeight) * dart.nullCheck(this.maxLines);
      }
      let minLimited = this.minLines != null && dart.nullCheck(this.minLines) > 1;
      let maxLimited = this.maxLines != null;
      if (minLimited || maxLimited) {
        this[_layoutText]({maxWidth: width});
        if (minLimited && dart.notNull(this[_textPainter].height) < dart.notNull(this.preferredLineHeight) * dart.nullCheck(this.minLines)) {
          return dart.notNull(this.preferredLineHeight) * dart.nullCheck(this.minLines);
        }
        if (maxLimited && dart.notNull(this[_textPainter].height) > dart.notNull(this.preferredLineHeight) * dart.nullCheck(this.maxLines)) {
          return dart.notNull(this.preferredLineHeight) * dart.nullCheck(this.maxLines);
        }
      }
      if (width === 1 / 0) {
        let text = this[_plainText];
        let lines = 1;
        for (let index = 0; index < text.length; index = index + 1) {
          if (text[$codeUnitAt](index) === 10) lines = lines + 1;
        }
        return dart.notNull(this.preferredLineHeight) * lines;
      }
      this[_layoutText]({maxWidth: width});
      return math.max(core.double, this.preferredLineHeight, this[_textPainter].height);
    }
    computeMinIntrinsicHeight(width) {
      if (width == null) dart.nullFailed(I[0], 1766, 43, "width");
      return this[_preferredHeight](width);
    }
    computeMaxIntrinsicHeight(width) {
      if (width == null) dart.nullFailed(I[0], 1771, 43, "width");
      return this[_preferredHeight](width);
    }
    computeDistanceToActualBaseline(baseline) {
      if (baseline == null) dart.nullFailed(I[0], 1776, 55, "baseline");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      return this[_textPainter].computeDistanceToActualBaseline(baseline);
    }
    hitTestSelf(position) {
      if (position == null) dart.nullFailed(I[0], 1782, 27, "position");
      return true;
    }
    get [_tap]() {
      let t2;
      return dart.test(this[__RenderEditable__tap_isSet]) ? (t2 = this[__RenderEditable__tap], t2) : dart.throw(new _internal.LateError.fieldNI("_tap"));
    }
    set [_tap](t2) {
      if (t2 == null) dart.nullFailed(I[0], 1784, 29, "null");
      this[__RenderEditable__tap_isSet] = true;
      this[__RenderEditable__tap] = t2;
    }
    get [_longPress]() {
      let t3;
      return dart.test(this[__RenderEditable__longPress_isSet]) ? (t3 = this[__RenderEditable__longPress], t3) : dart.throw(new _internal.LateError.fieldNI("_longPress"));
    }
    set [_longPress](t3) {
      if (t3 == null) dart.nullFailed(I[0], 1785, 35, "null");
      this[__RenderEditable__longPress_isSet] = true;
      this[__RenderEditable__longPress] = t3;
    }
    handleEvent(event, entry) {
      let t4;
      if (event == null) dart.nullFailed(I[0], 1788, 33, "event");
      box.BoxHitTestEntry.as(entry);
      if (entry == null) dart.nullFailed(I[0], 1788, 56, "entry");
      if (!dart.test(this.debugHandleEvent(event, entry))) dart.assertFailed(null, I[0], 1789, 12, "debugHandleEvent(event, entry)");
      if (events.PointerDownEvent.is(event)) {
        if (!!dart.test(this.debugNeedsLayout)) dart.assertFailed(null, I[0], 1791, 14, "!debugNeedsLayout");
        let offset = entry.localPosition;
        let position = this[_textPainter].getPositionForOffset(offset);
        let span = dart.nullCheck(this[_textPainter].text).getSpanForPosition(position);
        if (span != null && text_span.TextSpan.is(span)) {
          let textSpan = span;
          t4 = textSpan.recognizer;
          t4 == null ? null : t4.addPointer(event);
        }
        if (!dart.test(this.ignorePointer) && this.onSelectionChanged != null) {
          this[_tap].addPointer(event);
          this[_longPress].addPointer(event);
        }
      }
    }
    get lastSecondaryTapDownPosition() {
      return this[_lastSecondaryTapDownPosition];
    }
    handleSecondaryTapDown(details) {
      if (details == null) dart.nullFailed(I[0], 1820, 46, "details");
      this[_lastTapDownPosition] = details.globalPosition;
      this[_lastSecondaryTapDownPosition] = details.globalPosition;
    }
    handleTapDown(details) {
      if (details == null) dart.nullFailed(I[0], 1831, 37, "details");
      this[_lastTapDownPosition] = details.globalPosition;
    }
    [_handleTapDown](details) {
      if (details == null) dart.nullFailed(I[0], 1834, 38, "details");
      if (!!dart.test(this.ignorePointer)) dart.assertFailed(null, I[0], 1835, 12, "!ignorePointer");
      this.handleTapDown(details);
    }
    handleTap() {
      this.selectPosition({cause: editable.SelectionChangedCause.tap});
    }
    [_handleTap]() {
      if (!!dart.test(this.ignorePointer)) dart.assertFailed(null, I[0], 1849, 12, "!ignorePointer");
      this.handleTap();
    }
    handleDoubleTap() {
      this.selectWord({cause: editable.SelectionChangedCause.doubleTap});
    }
    handleLongPress() {
      this.selectWord({cause: editable.SelectionChangedCause.longPress});
    }
    [_handleLongPress]() {
      if (!!dart.test(this.ignorePointer)) dart.assertFailed(null, I[0], 1873, 12, "!ignorePointer");
      this.handleLongPress();
    }
    selectPosition(opts) {
      let cause = opts && 'cause' in opts ? opts.cause : null;
      if (cause == null) dart.nullFailed(I[0], 1887, 56, "cause");
      this.selectPositionAt({from: dart.nullCheck(this[_lastTapDownPosition]), cause: cause});
    }
    selectPositionAt(opts) {
      let t4, t4$;
      let from = opts && 'from' in opts ? opts.from : null;
      if (from == null) dart.nullFailed(I[0], 1895, 43, "from");
      let to = opts && 'to' in opts ? opts.to : null;
      let cause = opts && 'cause' in opts ? opts.cause : null;
      if (cause == null) dart.nullFailed(I[0], 1895, 92, "cause");
      if (!(cause != null)) dart.assertFailed(null, I[0], 1896, 12, "cause != null");
      if (!(from != null)) dart.assertFailed(null, I[0], 1897, 12, "from != null");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      if (this.onSelectionChanged == null) {
        return;
      }
      let fromPosition = this[_textPainter].getPositionForOffset(this.globalToLocal(from['-'](this[_paintOffset])));
      let toPosition = to == null ? null : this[_textPainter].getPositionForOffset(this.globalToLocal(to['-'](this[_paintOffset])));
      let baseOffset = fromPosition.offset;
      let extentOffset = (t4$ = (t4 = toPosition, t4 == null ? null : t4.offset), t4$ == null ? fromPosition.offset : t4$);
      let newSelection = new text_editing.TextSelection.new({baseOffset: baseOffset, extentOffset: extentOffset, affinity: fromPosition.affinity});
      this[_handleSelectionChange](newSelection, cause);
    }
    selectWord(opts) {
      let cause = opts && 'cause' in opts ? opts.cause : null;
      if (cause == null) dart.nullFailed(I[0], 1922, 52, "cause");
      this.selectWordsInRange({from: dart.nullCheck(this[_lastTapDownPosition]), cause: cause});
    }
    selectWordsInRange(opts) {
      let from = opts && 'from' in opts ? opts.from : null;
      if (from == null) dart.nullFailed(I[0], 1932, 45, "from");
      let to = opts && 'to' in opts ? opts.to : null;
      let cause = opts && 'cause' in opts ? opts.cause : null;
      if (cause == null) dart.nullFailed(I[0], 1932, 94, "cause");
      if (!(cause != null)) dart.assertFailed(null, I[0], 1933, 12, "cause != null");
      if (!(from != null)) dart.assertFailed(null, I[0], 1934, 12, "from != null");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      if (this.onSelectionChanged == null) {
        return;
      }
      let firstPosition = this[_textPainter].getPositionForOffset(this.globalToLocal(from['-'](this[_paintOffset])));
      let firstWord = this[_selectWordAtOffset](firstPosition);
      let lastWord = to == null ? firstWord : this[_selectWordAtOffset](this[_textPainter].getPositionForOffset(this.globalToLocal(to['-'](this[_paintOffset]))));
      this[_handleSelectionChange](new text_editing.TextSelection.new({baseOffset: firstWord.base.offset, extentOffset: lastWord.extent.offset, affinity: firstWord.affinity}), cause);
    }
    selectWordEdge(opts) {
      let cause = opts && 'cause' in opts ? opts.cause : null;
      if (cause == null) dart.nullFailed(I[0], 1957, 56, "cause");
      if (!(cause != null)) dart.assertFailed(null, I[0], 1958, 12, "cause != null");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      if (!(this[_lastTapDownPosition] != null)) dart.assertFailed(null, I[0], 1960, 12, "_lastTapDownPosition != null");
      if (this.onSelectionChanged == null) {
        return;
      }
      let position = this[_textPainter].getPositionForOffset(this.globalToLocal(dart.nullCheck(this[_lastTapDownPosition])['-'](this[_paintOffset])));
      let word = this[_textPainter].getWordBoundary(position);
      if (dart.notNull(position.offset) - dart.notNull(word.start) <= 1) {
        this[_handleSelectionChange](new text_editing.TextSelection.collapsed({offset: word.start, affinity: ui.TextAffinity.downstream}), cause);
      } else {
        this[_handleSelectionChange](new text_editing.TextSelection.collapsed({offset: word.end, affinity: ui.TextAffinity.upstream}), cause);
      }
    }
    [_selectWordAtOffset](position) {
      let t4;
      if (position == null) dart.nullFailed(I[0], 1979, 50, "position");
      if (!(this[_textLayoutLastMaxWidth] == this.constraints.maxWidth && this[_textLayoutLastMinWidth] == this.constraints.minWidth)) dart.assertFailed("Last width (" + dart.str(this[_textLayoutLastMinWidth]) + ", " + dart.str(this[_textLayoutLastMaxWidth]) + ") not the same as max width constraint (" + dart.str(this.constraints.minWidth) + ", " + dart.str(this.constraints.maxWidth) + ").", I[0], 1980, 12, "_textLayoutLastMaxWidth == constraints.maxWidth &&\r\n           _textLayoutLastMinWidth == constraints.minWidth");
      let word = this[_textPainter].getWordBoundary(position);
      if (dart.notNull(position.offset) >= dart.notNull(word.end)) return new text_editing.TextSelection.fromPosition(position);
      if (dart.test(this.obscureText)) {
        return new text_editing.TextSelection.new({baseOffset: 0, extentOffset: this[_plainText].length});
      } else if ((t4 = this.text, t4 == null ? null : t4.toPlainText()) != null && dart.test(editable._isWhitespace(dart.nullCheck(this.text).toPlainText()[$codeUnitAt](position.offset))) && dart.notNull(position.offset) > 0) {
        if (!(platform.defaultTargetPlatform != null)) dart.assertFailed(null, I[0], 1995, 14, "defaultTargetPlatform != null");
        let previousWord = this[_getPreviousWord](word.start);
        switch (platform.defaultTargetPlatform) {
          case C[17] || CT.C17:
          {
            return new text_editing.TextSelection.new({baseOffset: dart.nullCheck(previousWord).start, extentOffset: position.offset});
          }
          case C[18] || CT.C18:
          {
            if (dart.test(this.readOnly)) {
              return new text_editing.TextSelection.new({baseOffset: dart.nullCheck(previousWord).start, extentOffset: position.offset});
            }
            break;
          }
          case C[19] || CT.C19:
          case C[20] || CT.C20:
          case C[21] || CT.C21:
          case C[22] || CT.C22:
          {
            break;
          }
          default:
          {
            dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
          }
        }
      }
      return new text_editing.TextSelection.new({baseOffset: word.start, extentOffset: word.end});
    }
    [_selectLineAtOffset](position) {
      if (position == null) dart.nullFailed(I[0], 2022, 50, "position");
      if (!(this[_textLayoutLastMaxWidth] == this.constraints.maxWidth && this[_textLayoutLastMinWidth] == this.constraints.minWidth)) dart.assertFailed("Last width (" + dart.str(this[_textLayoutLastMinWidth]) + ", " + dart.str(this[_textLayoutLastMaxWidth]) + ") not the same as max width constraint (" + dart.str(this.constraints.minWidth) + ", " + dart.str(this.constraints.maxWidth) + ").", I[0], 2023, 12, "_textLayoutLastMaxWidth == constraints.maxWidth &&\r\n        _textLayoutLastMinWidth == constraints.minWidth");
      let line = this[_textPainter].getLineBoundary(position);
      if (dart.notNull(position.offset) >= dart.notNull(line.end)) return new text_editing.TextSelection.fromPosition(position);
      if (dart.test(this.obscureText)) {
        return new text_editing.TextSelection.new({baseOffset: 0, extentOffset: this[_plainText].length});
      }
      return new text_editing.TextSelection.new({baseOffset: line.start, extentOffset: line.end});
    }
    [_layoutText](opts) {
      let minWidth = opts && 'minWidth' in opts ? opts.minWidth : 0;
      if (minWidth == null) dart.nullFailed(I[0], 2036, 29, "minWidth");
      let maxWidth = opts && 'maxWidth' in opts ? opts.maxWidth : 1 / 0;
      if (maxWidth == null) dart.nullFailed(I[0], 2036, 52, "maxWidth");
      if (!(maxWidth != null && minWidth != null)) dart.assertFailed(null, I[0], 2037, 12, "maxWidth != null && minWidth != null");
      if (this[_textLayoutLastMaxWidth] == maxWidth && this[_textLayoutLastMinWidth] == minWidth) return;
      let availableMaxWidth = math.max(core.double, 0.0, dart.notNull(maxWidth) - dart.notNull(this[_caretMargin]));
      let availableMinWidth = math.min(core.double, minWidth, availableMaxWidth);
      let textMaxWidth = dart.test(this[_isMultiline]) ? availableMaxWidth : 1 / 0;
      let textMinWidth = dart.test(this.forceLine) ? availableMaxWidth : availableMinWidth;
      this[_textPainter].layout({minWidth: textMinWidth, maxWidth: textMaxWidth});
      this[_textLayoutLastMinWidth] = minWidth;
      this[_textLayoutLastMaxWidth] = maxWidth;
    }
    get [_caretPrototype]() {
      let t4;
      return dart.test(this[__RenderEditable__caretPrototype_isSet]) ? (t4 = this[__RenderEditable__caretPrototype], t4) : dart.throw(new _internal.LateError.fieldNI("_caretPrototype"));
    }
    set [_caretPrototype](t4) {
      if (t4 == null) dart.nullFailed(I[0], 2052, 13, "null");
      this[__RenderEditable__caretPrototype_isSet] = true;
      this[__RenderEditable__caretPrototype] = t4;
    }
    [_computeCaretPrototype]() {
      if (!(platform.defaultTargetPlatform != null)) dart.assertFailed(null, I[0], 2066, 12, "defaultTargetPlatform != null");
      switch (platform.defaultTargetPlatform) {
        case C[17] || CT.C17:
        case C[20] || CT.C20:
        {
          this[_caretPrototype] = new ui.Rect.fromLTWH(0.0, 0.0, this.cursorWidth, dart.notNull(this.cursorHeight) + 2);
          break;
        }
        case C[18] || CT.C18:
        case C[19] || CT.C19:
        case C[21] || CT.C21:
        case C[22] || CT.C22:
        {
          this[_caretPrototype] = new ui.Rect.fromLTWH(0.0, 2, this.cursorWidth, dart.notNull(this.cursorHeight) - 2.0 * 2);
          break;
        }
        default:
        {
          dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
        }
      }
    }
    computeDryLayout(constraints) {
      if (constraints == null) dart.nullFailed(I[0], 2082, 40, "constraints");
      this[_layoutText]({minWidth: constraints.minWidth, maxWidth: constraints.maxWidth});
      let width = dart.test(this.forceLine) ? constraints.maxWidth : constraints.constrainWidth(dart.notNull(this[_textPainter].size.width) + dart.notNull(this[_caretMargin]));
      return new ui.Size.new(width, constraints.constrainHeight(this[_preferredHeight](constraints.maxWidth)));
    }
    performLayout() {
      let constraints = this.constraints;
      this[_layoutText]({minWidth: constraints.minWidth, maxWidth: constraints.maxWidth});
      this[_computeCaretPrototype]();
      this[_selectionRects] = null;
      let textPainterSize = this[_textPainter].size;
      let width = dart.test(this.forceLine) ? constraints.maxWidth : constraints.constrainWidth(dart.notNull(this[_textPainter].size.width) + dart.notNull(this[_caretMargin]));
      this.size = new ui.Size.new(width, constraints.constrainHeight(this[_preferredHeight](constraints.maxWidth)));
      let contentSize = new ui.Size.new(dart.notNull(textPainterSize.width) + dart.notNull(this[_caretMargin]), textPainterSize.height);
      this[_maxScrollExtent] = this[_getMaxScrollExtent](contentSize);
      this.offset.applyViewportDimension(this[_viewportExtent]);
      this.offset.applyContentDimensions(0.0, this[_maxScrollExtent]);
    }
    [_getPixelPerfectCursorOffset](caretRect) {
      if (caretRect == null) dart.nullFailed(I[0], 2115, 44, "caretRect");
      let caretPosition = this.localToGlobal(caretRect.topLeft);
      let pixelMultiple = 1.0 / dart.notNull(this[_devicePixelRatio]);
      let pixelPerfectOffsetX = caretPosition.dx[$isFinite] ? (dart.notNull(caretPosition.dx) / pixelMultiple)[$round]() * pixelMultiple - dart.notNull(caretPosition.dx) : 0.0;
      let pixelPerfectOffsetY = caretPosition.dy[$isFinite] ? (dart.notNull(caretPosition.dy) / pixelMultiple)[$round]() * pixelMultiple - dart.notNull(caretPosition.dy) : 0.0;
      return new ui.Offset.new(pixelPerfectOffsetX, pixelPerfectOffsetY);
    }
    [_paintCaret](canvas, effectiveOffset, textPosition) {
      let t5;
      if (canvas == null) dart.nullFailed(I[0], 2127, 27, "canvas");
      if (effectiveOffset == null) dart.nullFailed(I[0], 2127, 42, "effectiveOffset");
      if (textPosition == null) dart.nullFailed(I[0], 2127, 72, "textPosition");
      if (!(this[_textLayoutLastMaxWidth] == this.constraints.maxWidth && this[_textLayoutLastMinWidth] == this.constraints.minWidth)) dart.assertFailed("Last width (" + dart.str(this[_textLayoutLastMinWidth]) + ", " + dart.str(this[_textLayoutLastMaxWidth]) + ") not the same as max width constraint (" + dart.str(this.constraints.minWidth) + ", " + dart.str(this.constraints.maxWidth) + ").", I[0], 2128, 12, "_textLayoutLastMaxWidth == constraints.maxWidth &&\r\n           _textLayoutLastMinWidth == constraints.minWidth");
      if (!(this[_caretPrototype] != null)) dart.assertFailed(null, I[0], 2131, 12, "_caretPrototype != null");
      let paint = (t5 = ui.Paint.new(), (() => {
        t5.color = dart.nullCheck(dart.test(this[_floatingCursorOn]) ? this.backgroundCursorColor : this[_cursorColor]);
        return t5;
      })());
      let caretOffset = this[_textPainter].getOffsetForCaret(textPosition, this[_caretPrototype])['+'](effectiveOffset);
      let caretRect = this[_caretPrototype].shift(caretOffset);
      if (this[_cursorOffset] != null) caretRect = caretRect.shift(dart.nullCheck(this[_cursorOffset]));
      let caretHeight = this[_textPainter].getFullHeightForCaret(textPosition, this[_caretPrototype]);
      if (caretHeight != null) {
        switch (platform.defaultTargetPlatform) {
          case C[17] || CT.C17:
          case C[20] || CT.C20:
          {
            let heightDiff = dart.notNull(caretHeight) - dart.notNull(caretRect.height);
            caretRect = new ui.Rect.fromLTWH(caretRect.left, dart.notNull(caretRect.top) + heightDiff / 2, caretRect.width, caretRect.height);
            break;
          }
          case C[18] || CT.C18:
          case C[19] || CT.C19:
          case C[21] || CT.C21:
          case C[22] || CT.C22:
          {
            caretRect = new ui.Rect.fromLTWH(caretRect.left, dart.notNull(caretRect.top) - 2, caretRect.width, caretHeight);
            break;
          }
          default:
          {
            dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
          }
        }
      }
      caretRect = caretRect.shift(this[_getPixelPerfectCursorOffset](caretRect));
      if (this.cursorRadius == null) {
        canvas.drawRect(caretRect, paint);
      } else {
        let caretRRect = new ui.RRect.fromRectAndRadius(caretRect, dart.nullCheck(this.cursorRadius));
        canvas.drawRRect(caretRRect, paint);
      }
      if (!dart.equals(caretRect, this[_lastCaretRect])) {
        this[_lastCaretRect] = caretRect;
        if (this.onCaretChanged != null) dart.nullCheck(this.onCaretChanged)(caretRect);
      }
    }
    setFloatingCursor(state, boundedOffset, lastTextPosition, opts) {
      if (state == null) dart.nullFailed(I[0], 2191, 50, "state");
      if (boundedOffset == null) dart.nullFailed(I[0], 2191, 64, "boundedOffset");
      if (lastTextPosition == null) dart.nullFailed(I[0], 2191, 92, "lastTextPosition");
      let resetLerpValue = opts && 'resetLerpValue' in opts ? opts.resetLerpValue : null;
      if (!(state != null)) dart.assertFailed(null, I[0], 2192, 12, "state != null");
      if (!(boundedOffset != null)) dart.assertFailed(null, I[0], 2193, 12, "boundedOffset != null");
      if (!(lastTextPosition != null)) dart.assertFailed(null, I[0], 2194, 12, "lastTextPosition != null");
      if (state == text_input.FloatingCursorDragState.Start) {
        this[_relativeOrigin] = ui.Offset.zero;
        this[_previousOffset] = null;
        this[_resetOriginOnBottom] = false;
        this[_resetOriginOnTop] = false;
        this[_resetOriginOnRight] = false;
        this[_resetOriginOnBottom] = false;
      }
      this[_floatingCursorOn] = state != text_input.FloatingCursorDragState.End;
      this[_resetFloatingCursorAnimationValue] = resetLerpValue;
      if (dart.test(this[_floatingCursorOn])) {
        this[_floatingCursorOffset] = boundedOffset;
        this[_floatingCursorTextPosition] = lastTextPosition;
      }
      this.markNeedsPaint();
    }
    [_paintFloatingCaret](canvas, effectiveOffset) {
      let t5;
      if (canvas == null) dart.nullFailed(I[0], 2212, 35, "canvas");
      if (effectiveOffset == null) dart.nullFailed(I[0], 2212, 50, "effectiveOffset");
      if (!(this[_textLayoutLastMaxWidth] == this.constraints.maxWidth && this[_textLayoutLastMinWidth] == this.constraints.minWidth)) dart.assertFailed("Last width (" + dart.str(this[_textLayoutLastMinWidth]) + ", " + dart.str(this[_textLayoutLastMaxWidth]) + ") not the same as max width constraint (" + dart.str(this.constraints.minWidth) + ", " + dart.str(this.constraints.maxWidth) + ").", I[0], 2213, 12, "_textLayoutLastMaxWidth == constraints.maxWidth &&\r\n           _textLayoutLastMinWidth == constraints.minWidth");
      if (!dart.test(this[_floatingCursorOn])) dart.assertFailed(null, I[0], 2216, 12, "_floatingCursorOn");
      let paint = (t5 = ui.Paint.new(), (() => {
        t5.color = dart.nullCheck(this[_cursorColor]).withOpacity(0.75);
        return t5;
      })());
      let sizeAdjustmentX = editable._kFloatingCaretSizeIncrease.dx;
      let sizeAdjustmentY = editable._kFloatingCaretSizeIncrease.dy;
      if (this[_resetFloatingCursorAnimationValue] != null) {
        sizeAdjustmentX = dart.nullCheck(ui.lerpDouble(sizeAdjustmentX, 0, dart.nullCheck(this[_resetFloatingCursorAnimationValue])));
        sizeAdjustmentY = dart.nullCheck(ui.lerpDouble(sizeAdjustmentY, 0, dart.nullCheck(this[_resetFloatingCursorAnimationValue])));
      }
      let floatingCaretPrototype = new ui.Rect.fromLTRB(dart.notNull(this[_caretPrototype].left) - dart.notNull(sizeAdjustmentX), dart.notNull(this[_caretPrototype].top) - dart.notNull(sizeAdjustmentY), dart.notNull(this[_caretPrototype].right) + dart.notNull(sizeAdjustmentX), dart.notNull(this[_caretPrototype].bottom) + dart.notNull(sizeAdjustmentY));
      let caretRect = floatingCaretPrototype.shift(effectiveOffset);
      let floatingCursorRadius = C[23] || CT.C23;
      let caretRRect = new ui.RRect.fromRectAndRadius(caretRect, floatingCursorRadius);
      canvas.drawRRect(caretRRect, paint);
    }
    calculateBoundedFloatingCursorOffset(rawCursorOffset) {
      if (rawCursorOffset == null) dart.nullFailed(I[0], 2254, 54, "rawCursorOffset");
      let deltaPosition = ui.Offset.zero;
      let topBound = -dart.notNull(this.floatingCursorAddedMargin.top);
      let bottomBound = dart.notNull(this[_textPainter].height) - dart.notNull(this.preferredLineHeight) + dart.notNull(this.floatingCursorAddedMargin.bottom);
      let leftBound = -dart.notNull(this.floatingCursorAddedMargin.left);
      let rightBound = dart.notNull(this[_textPainter].width) + dart.notNull(this.floatingCursorAddedMargin.right);
      if (this[_previousOffset] != null) deltaPosition = rawCursorOffset['-'](dart.nullCheck(this[_previousOffset]));
      if (dart.test(this[_resetOriginOnLeft]) && dart.notNull(deltaPosition.dx) > 0) {
        this[_relativeOrigin] = new ui.Offset.new(dart.notNull(rawCursorOffset.dx) - leftBound, this[_relativeOrigin].dy);
        this[_resetOriginOnLeft] = false;
      } else if (dart.test(this[_resetOriginOnRight]) && dart.notNull(deltaPosition.dx) < 0) {
        this[_relativeOrigin] = new ui.Offset.new(dart.notNull(rawCursorOffset.dx) - rightBound, this[_relativeOrigin].dy);
        this[_resetOriginOnRight] = false;
      }
      if (dart.test(this[_resetOriginOnTop]) && dart.notNull(deltaPosition.dy) > 0) {
        this[_relativeOrigin] = new ui.Offset.new(this[_relativeOrigin].dx, dart.notNull(rawCursorOffset.dy) - topBound);
        this[_resetOriginOnTop] = false;
      } else if (dart.test(this[_resetOriginOnBottom]) && dart.notNull(deltaPosition.dy) < 0) {
        this[_relativeOrigin] = new ui.Offset.new(this[_relativeOrigin].dx, dart.notNull(rawCursorOffset.dy) - bottomBound);
        this[_resetOriginOnBottom] = false;
      }
      let currentX = dart.notNull(rawCursorOffset.dx) - dart.notNull(this[_relativeOrigin].dx);
      let currentY = dart.notNull(rawCursorOffset.dy) - dart.notNull(this[_relativeOrigin].dy);
      let adjustedX = math.min(core.double, math.max(core.double, currentX, leftBound), rightBound);
      let adjustedY = math.min(core.double, math.max(core.double, currentY, topBound), bottomBound);
      let adjustedOffset = new ui.Offset.new(adjustedX, adjustedY);
      if (currentX < leftBound && dart.notNull(deltaPosition.dx) < 0)
        this[_resetOriginOnLeft] = true;
      else if (currentX > rightBound && dart.notNull(deltaPosition.dx) > 0) this[_resetOriginOnRight] = true;
      if (currentY < topBound && dart.notNull(deltaPosition.dy) < 0)
        this[_resetOriginOnTop] = true;
      else if (currentY > bottomBound && dart.notNull(deltaPosition.dy) > 0) this[_resetOriginOnBottom] = true;
      this[_previousOffset] = rawCursorOffset;
      return adjustedOffset;
    }
    [_paintSelection](canvas, effectiveOffset) {
      let t5;
      if (canvas == null) dart.nullFailed(I[0], 2301, 31, "canvas");
      if (effectiveOffset == null) dart.nullFailed(I[0], 2301, 46, "effectiveOffset");
      if (!(this[_textLayoutLastMaxWidth] == this.constraints.maxWidth && this[_textLayoutLastMinWidth] == this.constraints.minWidth)) dart.assertFailed("Last width (" + dart.str(this[_textLayoutLastMinWidth]) + ", " + dart.str(this[_textLayoutLastMaxWidth]) + ") not the same as max width constraint (" + dart.str(this.constraints.minWidth) + ", " + dart.str(this.constraints.maxWidth) + ").", I[0], 2302, 12, "_textLayoutLastMaxWidth == constraints.maxWidth &&\r\n           _textLayoutLastMinWidth == constraints.minWidth");
      if (!(this[_selectionRects] != null)) dart.assertFailed(null, I[0], 2305, 12, "_selectionRects != null");
      let paint = (t5 = ui.Paint.new(), (() => {
        t5.color = dart.nullCheck(this[_selectionColor]);
        return t5;
      })());
      for (let box of dart.nullCheck(this[_selectionRects]))
        canvas.drawRect(box.toRect().shift(effectiveOffset), paint);
    }
    [_paintPromptRectIfNeeded](canvas, effectiveOffset) {
      if (canvas == null) dart.nullFailed(I[0], 2312, 40, "canvas");
      if (effectiveOffset == null) dart.nullFailed(I[0], 2312, 55, "effectiveOffset");
      if (this[_promptRectRange] == null || this.promptRectColor == null) {
        return;
      }
      let boxes = this[_textPainter].getBoxesForSelection(new text_editing.TextSelection.new({baseOffset: dart.nullCheck(this[_promptRectRange]).start, extentOffset: dart.nullCheck(this[_promptRectRange]).end}));
      for (let box of boxes) {
        canvas.drawRect(box.toRect().shift(effectiveOffset), this[_promptRectPaint]);
      }
    }
    [_paintContents](context, offset) {
      if (context == null) dart.nullFailed(I[0], 2329, 39, "context");
      if (offset == null) dart.nullFailed(I[0], 2329, 55, "offset");
      if (!(this[_textLayoutLastMaxWidth] == this.constraints.maxWidth && this[_textLayoutLastMinWidth] == this.constraints.minWidth)) dart.assertFailed("Last width (" + dart.str(this[_textLayoutLastMinWidth]) + ", " + dart.str(this[_textLayoutLastMaxWidth]) + ") not the same as max width constraint (" + dart.str(this.constraints.minWidth) + ", " + dart.str(this.constraints.maxWidth) + ").", I[0], 2330, 12, "_textLayoutLastMaxWidth == constraints.maxWidth &&\r\n           _textLayoutLastMinWidth == constraints.minWidth");
      let effectiveOffset = offset['+'](this[_paintOffset]);
      let showSelection = false;
      let showCaret = false;
      if (this.selection != null && !dart.test(this[_floatingCursorOn])) {
        if (dart.test(dart.nullCheck(this.selection).isCollapsed) && dart.test(this[_showCursor].value) && this.cursorColor != null)
          showCaret = true;
        else if (!dart.test(dart.nullCheck(this.selection).isCollapsed) && this[_selectionColor] != null) showSelection = true;
        this[_updateSelectionExtentsVisibility](effectiveOffset);
      }
      if (showSelection) {
        if (!(this.selection != null)) dart.assertFailed(null, I[0], 2347, 14, "selection != null");
        this[_selectionRects] == null ? this[_selectionRects] = this[_textPainter].getBoxesForSelection(dart.nullCheck(this.selection), {boxHeightStyle: this[_selectionHeightStyle], boxWidthStyle: this[_selectionWidthStyle]}) : null;
        this[_paintSelection](context.canvas, effectiveOffset);
      }
      this[_paintPromptRectIfNeeded](context.canvas, effectiveOffset);
      if (dart.test(this.paintCursorAboveText)) this[_textPainter].paint(context.canvas, effectiveOffset);
      if (showCaret) {
        if (!(this.selection != null)) dart.assertFailed(null, I[0], 2360, 14, "selection != null");
        this[_paintCaret](context.canvas, effectiveOffset, dart.nullCheck(this.selection).extent);
      }
      if (!dart.test(this.paintCursorAboveText)) this[_textPainter].paint(context.canvas, effectiveOffset);
      if (dart.test(this[_floatingCursorOn])) {
        if (this[_resetFloatingCursorAnimationValue] == null) this[_paintCaret](context.canvas, effectiveOffset, this[_floatingCursorTextPosition]);
        this[_paintFloatingCaret](context.canvas, this[_floatingCursorOffset]);
      }
    }
    [_paintHandleLayers](context, endpoints) {
      if (context == null) dart.nullFailed(I[0], 2374, 43, "context");
      if (endpoints == null) dart.nullFailed(I[0], 2374, 77, "endpoints");
      let startPoint = endpoints[$_get](0).point;
      startPoint = new ui.Offset.new(startPoint.dx[$clamp](0.0, this.size.width), startPoint.dy[$clamp](0.0, this.size.height));
      context.pushLayer(new layer.LeaderLayer.new({link: this.startHandleLayerLink, offset: startPoint}), dart.bind(this, 'paint', super.paint), ui.Offset.zero);
      if (endpoints[$length] === 2) {
        let endPoint = endpoints[$_get](1).point;
        endPoint = new ui.Offset.new(endPoint.dx[$clamp](0.0, this.size.width), endPoint.dy[$clamp](0.0, this.size.height));
        context.pushLayer(new layer.LeaderLayer.new({link: this.endHandleLayerLink, offset: endPoint}), dart.bind(this, 'paint', super.paint), ui.Offset.zero);
      }
    }
    paint(context, offset) {
      if (context == null) dart.nullFailed(I[0], 2399, 30, "context");
      if (offset == null) dart.nullFailed(I[0], 2399, 46, "offset");
      this[_layoutText]({minWidth: this.constraints.minWidth, maxWidth: this.constraints.maxWidth});
      if (dart.test(this[_hasVisualOverflow]) && this.clipBehavior != ui.Clip.none) {
        this[_clipRectLayer] = context.pushClipRect(this.needsCompositing, offset, ui.Offset.zero['&'](this.size), dart.bind(this, _paintContents), {clipBehavior: this.clipBehavior, oldLayer: this[_clipRectLayer]});
      } else {
        this[_clipRectLayer] = null;
        this[_paintContents](context, offset);
      }
      this[_paintHandleLayers](context, this.getEndpointsForSelection(dart.nullCheck(this.selection)));
    }
    describeApproximatePaintClip(child) {
      object.RenderObject.as(child);
      if (child == null) dart.nullFailed(I[0], 2414, 51, "child");
      return dart.test(this[_hasVisualOverflow]) ? ui.Offset.zero['&'](this.size) : null;
    }
    debugFillProperties(properties) {
      if (properties == null) dart.nullFailed(I[0], 2417, 56, "properties");
      super.debugFillProperties(properties);
      properties.add(new colors.ColorProperty.new("cursorColor", this.cursorColor));
      properties.add(new (T.DiagnosticsPropertyOfValueNotifierOfbool()).new("showCursor", this.showCursor));
      properties.add(new diagnostics.IntProperty.new("maxLines", this.maxLines));
      properties.add(new diagnostics.IntProperty.new("minLines", this.minLines));
      properties.add(new (T.DiagnosticsPropertyOfbool()).new("expands", this.expands, {defaultValue: false}));
      properties.add(new colors.ColorProperty.new("selectionColor", this.selectionColor));
      properties.add(new diagnostics.DoubleProperty.new("textScaleFactor", this.textScaleFactor));
      properties.add(new (T.DiagnosticsPropertyOfLocale()).new("locale", this.locale, {defaultValue: null}));
      properties.add(new (T.DiagnosticsPropertyOfTextSelection()).new("selection", this.selection));
      properties.add(new (T.DiagnosticsPropertyOfViewportOffset()).new("offset", this.offset));
    }
    debugDescribeChildren() {
      return (() => {
        let t5 = T.JSArrayOfDiagnosticsNode().of([]);
        if (this.text != null) t5[$add](dart.nullCheck(this.text).toDiagnosticsNode({name: "text", style: diagnostics.DiagnosticsTreeStyle.transition}));
        return t5;
      })();
    }
  };
  (editable.RenderEditable.new = function(opts) {
    let t0, t0$;
    let text = opts && 'text' in opts ? opts.text : null;
    let textDirection = opts && 'textDirection' in opts ? opts.textDirection : null;
    if (textDirection == null) dart.nullFailed(I[0], 184, 28, "textDirection");
    let textAlign = opts && 'textAlign' in opts ? opts.textAlign : C[9] || CT.C9;
    if (textAlign == null) dart.nullFailed(I[0], 185, 15, "textAlign");
    let cursorColor = opts && 'cursorColor' in opts ? opts.cursorColor : null;
    let backgroundCursorColor = opts && 'backgroundCursorColor' in opts ? opts.backgroundCursorColor : null;
    let showCursor = opts && 'showCursor' in opts ? opts.showCursor : null;
    let hasFocus = opts && 'hasFocus' in opts ? opts.hasFocus : null;
    let startHandleLayerLink = opts && 'startHandleLayerLink' in opts ? opts.startHandleLayerLink : null;
    if (startHandleLayerLink == null) dart.nullFailed(I[0], 190, 24, "startHandleLayerLink");
    let endHandleLayerLink = opts && 'endHandleLayerLink' in opts ? opts.endHandleLayerLink : null;
    if (endHandleLayerLink == null) dart.nullFailed(I[0], 191, 24, "endHandleLayerLink");
    let maxLines = opts && 'maxLines' in opts ? opts.maxLines : 1;
    let minLines = opts && 'minLines' in opts ? opts.minLines : null;
    let expands = opts && 'expands' in opts ? opts.expands : false;
    if (expands == null) dart.nullFailed(I[0], 194, 10, "expands");
    let strutStyle = opts && 'strutStyle' in opts ? opts.strutStyle : null;
    let selectionColor = opts && 'selectionColor' in opts ? opts.selectionColor : null;
    let textScaleFactor = opts && 'textScaleFactor' in opts ? opts.textScaleFactor : 1;
    if (textScaleFactor == null) dart.nullFailed(I[0], 197, 12, "textScaleFactor");
    let selection = opts && 'selection' in opts ? opts.selection : null;
    let offset = opts && 'offset' in opts ? opts.offset : null;
    if (offset == null) dart.nullFailed(I[0], 199, 29, "offset");
    let onSelectionChanged = opts && 'onSelectionChanged' in opts ? opts.onSelectionChanged : null;
    let onCaretChanged = opts && 'onCaretChanged' in opts ? opts.onCaretChanged : null;
    let ignorePointer = opts && 'ignorePointer' in opts ? opts.ignorePointer : false;
    if (ignorePointer == null) dart.nullFailed(I[0], 202, 10, "ignorePointer");
    let readOnly = opts && 'readOnly' in opts ? opts.readOnly : false;
    if (readOnly == null) dart.nullFailed(I[0], 203, 10, "readOnly");
    let forceLine = opts && 'forceLine' in opts ? opts.forceLine : true;
    if (forceLine == null) dart.nullFailed(I[0], 204, 10, "forceLine");
    let textHeightBehavior = opts && 'textHeightBehavior' in opts ? opts.textHeightBehavior : null;
    let textWidthBasis = opts && 'textWidthBasis' in opts ? opts.textWidthBasis : C[10] || CT.C10;
    if (textWidthBasis == null) dart.nullFailed(I[0], 206, 20, "textWidthBasis");
    let obscuringCharacter = opts && 'obscuringCharacter' in opts ? opts.obscuringCharacter : "•";
    if (obscuringCharacter == null) dart.nullFailed(I[0], 207, 12, "obscuringCharacter");
    let obscureText = opts && 'obscureText' in opts ? opts.obscureText : false;
    if (obscureText == null) dart.nullFailed(I[0], 208, 10, "obscureText");
    let locale = opts && 'locale' in opts ? opts.locale : null;
    let cursorWidth = opts && 'cursorWidth' in opts ? opts.cursorWidth : 1;
    if (cursorWidth == null) dart.nullFailed(I[0], 210, 12, "cursorWidth");
    let cursorHeight = opts && 'cursorHeight' in opts ? opts.cursorHeight : null;
    let cursorRadius = opts && 'cursorRadius' in opts ? opts.cursorRadius : null;
    let paintCursorAboveText = opts && 'paintCursorAboveText' in opts ? opts.paintCursorAboveText : false;
    if (paintCursorAboveText == null) dart.nullFailed(I[0], 213, 10, "paintCursorAboveText");
    let cursorOffset = opts && 'cursorOffset' in opts ? opts.cursorOffset : null;
    let devicePixelRatio = opts && 'devicePixelRatio' in opts ? opts.devicePixelRatio : 1;
    if (devicePixelRatio == null) dart.nullFailed(I[0], 215, 12, "devicePixelRatio");
    let selectionHeightStyle = opts && 'selectionHeightStyle' in opts ? opts.selectionHeightStyle : C[11] || CT.C11;
    if (selectionHeightStyle == null) dart.nullFailed(I[0], 216, 23, "selectionHeightStyle");
    let selectionWidthStyle = opts && 'selectionWidthStyle' in opts ? opts.selectionWidthStyle : C[12] || CT.C12;
    if (selectionWidthStyle == null) dart.nullFailed(I[0], 217, 22, "selectionWidthStyle");
    let enableInteractiveSelection = opts && 'enableInteractiveSelection' in opts ? opts.enableInteractiveSelection : null;
    let floatingCursorAddedMargin = opts && 'floatingCursorAddedMargin' in opts ? opts.floatingCursorAddedMargin : C[13] || CT.C13;
    if (floatingCursorAddedMargin == null) dart.nullFailed(I[0], 219, 16, "floatingCursorAddedMargin");
    let promptRectRange = opts && 'promptRectRange' in opts ? opts.promptRectRange : null;
    let promptRectColor = opts && 'promptRectColor' in opts ? opts.promptRectColor : null;
    let clipBehavior = opts && 'clipBehavior' in opts ? opts.clipBehavior : C[14] || CT.C14;
    if (clipBehavior == null) dart.nullFailed(I[0], 222, 10, "clipBehavior");
    let textSelectionDelegate = opts && 'textSelectionDelegate' in opts ? opts.textSelectionDelegate : null;
    if (textSelectionDelegate == null) dart.nullFailed(I[0], 223, 19, "textSelectionDelegate");
    this[_textLayoutLastMaxWidth] = null;
    this[_textLayoutLastMinWidth] = null;
    this[_lastCaretRect] = null;
    this[_selectionStartInViewport] = new (T.ValueNotifierOfbool()).new(true);
    this[_selectionEndInViewport] = new (T.ValueNotifierOfbool()).new(true);
    this[_cursorResetLocation] = -1;
    this[_wasSelectingVerticallyWithKeyboard] = false;
    this[_cachedPlainText] = null;
    this[_hasFocus] = false;
    this[_listenerAttached] = false;
    this[_forceLine] = false;
    this[_readOnly] = false;
    this[_selectionRects] = null;
    this[_cursorWidth] = 1.0;
    this[_floatingCursorOn] = false;
    this[__RenderEditable__floatingCursorOffset] = null;
    this[__RenderEditable__floatingCursorOffset_isSet] = false;
    this[__RenderEditable__floatingCursorTextPosition] = null;
    this[__RenderEditable__floatingCursorTextPosition_isSet] = false;
    this[_maxScrollExtent] = 0.0;
    this[_clipBehavior] = ui.Clip.hardEdge;
    this[__RenderEditable__tap] = null;
    this[__RenderEditable__tap_isSet] = false;
    this[__RenderEditable__longPress] = null;
    this[__RenderEditable__longPress_isSet] = false;
    this[_lastTapDownPosition] = null;
    this[_lastSecondaryTapDownPosition] = null;
    this[__RenderEditable__caretPrototype] = null;
    this[__RenderEditable__caretPrototype_isSet] = false;
    this[_relativeOrigin] = ui.Offset.zero;
    this[_previousOffset] = null;
    this[_resetOriginOnLeft] = false;
    this[_resetOriginOnRight] = false;
    this[_resetOriginOnTop] = false;
    this[_resetOriginOnBottom] = false;
    this[_resetFloatingCursorAnimationValue] = null;
    this[_promptRectPaint] = ui.Paint.new();
    this[_clipRectLayer] = null;
    this[onSelectionChanged$] = onSelectionChanged;
    this[onCaretChanged$] = onCaretChanged;
    this[ignorePointer$] = ignorePointer;
    this[textSelectionDelegate$] = textSelectionDelegate;
    if (!(textAlign != null)) dart.assertFailed(null, I[0], 224, 15, "textAlign != null");
    if (!(textDirection != null)) dart.assertFailed("RenderEditable created without a textDirection.", I[0], 225, 15, "textDirection != null");
    if (!(maxLines == null || dart.notNull(maxLines) > 0)) dart.assertFailed(null, I[0], 226, 15, "maxLines == null || maxLines > 0");
    if (!(minLines == null || dart.notNull(minLines) > 0)) dart.assertFailed(null, I[0], 227, 15, "minLines == null || minLines > 0");
    if (!(startHandleLayerLink != null)) dart.assertFailed(null, I[0], 228, 15, "startHandleLayerLink != null");
    if (!(endHandleLayerLink != null)) dart.assertFailed(null, I[0], 229, 15, "endHandleLayerLink != null");
    if (!(maxLines == null || minLines == null || dart.notNull(maxLines) >= dart.notNull(minLines))) dart.assertFailed("minLines can't be greater than maxLines", I[0], 231, 10, "(maxLines == null) || (minLines == null) || (maxLines >= minLines)");
    if (!(expands != null)) dart.assertFailed(null, I[0], 234, 15, "expands != null");
    if (!(!dart.test(expands) || maxLines == null && minLines == null)) dart.assertFailed("minLines and maxLines must be null when expands is true.", I[0], 236, 10, "!expands || (maxLines == null && minLines == null)");
    if (!(textScaleFactor != null)) dart.assertFailed(null, I[0], 239, 15, "textScaleFactor != null");
    if (!(offset != null)) dart.assertFailed(null, I[0], 240, 15, "offset != null");
    if (!(ignorePointer != null)) dart.assertFailed(null, I[0], 241, 15, "ignorePointer != null");
    if (!(textWidthBasis != null)) dart.assertFailed(null, I[0], 242, 15, "textWidthBasis != null");
    if (!(paintCursorAboveText != null)) dart.assertFailed(null, I[0], 243, 15, "paintCursorAboveText != null");
    if (!(obscuringCharacter != null && extensions['StringCharacters|get#characters'](obscuringCharacter)[$length] === 1)) dart.assertFailed(null, I[0], 244, 15, "obscuringCharacter != null && obscuringCharacter.characters.length == 1");
    if (!(obscureText != null)) dart.assertFailed(null, I[0], 245, 15, "obscureText != null");
    if (!(textSelectionDelegate != null)) dart.assertFailed(null, I[0], 246, 15, "textSelectionDelegate != null");
    if (!(cursorWidth != null && dart.notNull(cursorWidth) >= 0.0)) dart.assertFailed(null, I[0], 247, 15, "cursorWidth != null && cursorWidth >= 0.0");
    if (!(cursorHeight == null || dart.notNull(cursorHeight) >= 0.0)) dart.assertFailed(null, I[0], 248, 15, "cursorHeight == null || cursorHeight >= 0.0");
    if (!(readOnly != null)) dart.assertFailed(null, I[0], 249, 15, "readOnly != null");
    if (!(forceLine != null)) dart.assertFailed(null, I[0], 250, 15, "forceLine != null");
    if (!(devicePixelRatio != null)) dart.assertFailed(null, I[0], 251, 15, "devicePixelRatio != null");
    if (!(selectionHeightStyle != null)) dart.assertFailed(null, I[0], 252, 15, "selectionHeightStyle != null");
    if (!(selectionWidthStyle != null)) dart.assertFailed(null, I[0], 253, 15, "selectionWidthStyle != null");
    if (!(clipBehavior != null)) dart.assertFailed(null, I[0], 254, 15, "clipBehavior != null");
    this[_textPainter] = new text_painter.TextPainter.new({text: text, textAlign: textAlign, textDirection: textDirection, textScaleFactor: textScaleFactor, locale: locale, strutStyle: strutStyle, textHeightBehavior: textHeightBehavior, textWidthBasis: textWidthBasis});
    this[_cursorColor] = cursorColor;
    this[_backgroundCursorColor] = backgroundCursorColor;
    this[_showCursor] = (t0 = showCursor, t0 == null ? new (T.ValueNotifierOfbool()).new(false) : t0);
    this[_maxLines] = maxLines;
    this[_minLines] = minLines;
    this[_expands] = expands;
    this[_selectionColor] = selectionColor;
    this[_selection] = selection;
    this[_offset] = offset;
    this[_cursorWidth] = cursorWidth;
    this[_cursorHeight] = cursorHeight;
    this[_cursorRadius] = cursorRadius;
    this[_paintCursorOnTop] = paintCursorAboveText;
    this[_cursorOffset] = cursorOffset;
    this[_floatingCursorAddedMargin] = floatingCursorAddedMargin;
    this[_enableInteractiveSelection] = enableInteractiveSelection;
    this[_devicePixelRatio] = devicePixelRatio;
    this[_selectionHeightStyle] = selectionHeightStyle;
    this[_selectionWidthStyle] = selectionWidthStyle;
    this[_startHandleLayerLink] = startHandleLayerLink;
    this[_endHandleLayerLink] = endHandleLayerLink;
    this[_obscuringCharacter] = obscuringCharacter;
    this[_obscureText] = obscureText;
    this[_readOnly] = readOnly;
    this[_forceLine] = forceLine;
    this[_promptRectRange] = promptRectRange;
    this[_clipBehavior] = clipBehavior;
    editable.RenderEditable.__proto__.new.call(this);
    if (!(this[_showCursor] != null)) dart.assertFailed(null, I[0], 292, 12, "_showCursor != null");
    if (!(!dart.test(this[_showCursor].value) || cursorColor != null)) dart.assertFailed(null, I[0], 293, 12, "!_showCursor.value || cursorColor != null");
    this.hasFocus = (t0$ = hasFocus, t0$ == null ? false : t0$);
    if (promptRectColor != null) this[_promptRectPaint].color = promptRectColor;
  }).prototype = editable.RenderEditable.prototype;
  dart.addTypeTests(editable.RenderEditable);
  dart.addTypeCaches(editable.RenderEditable);
  dart.setMethodSignature(editable.RenderEditable, () => ({
    __proto__: dart.getMethods(editable.RenderEditable.__proto__),
    [_updateSelectionExtentsVisibility]: dart.fnType(dart.void, [ui.Offset]),
    [_handleSelectionChange]: dart.fnType(dart.void, [text_editing.TextSelection, editable.SelectionChangedCause]),
    [_handleKeyEvent]: dart.fnType(dart.void, [raw_keyboard.RawKeyEvent]),
    [_handleMovement]: dart.fnType(dart.void, [keyboard_key.LogicalKeyboardKey], {}, {lineModifier: core.bool, shift: core.bool, wordModifier: core.bool}),
    [_handleShortcuts]: dart.fnType(async.Future$(dart.void), [keyboard_key.LogicalKeyboardKey]),
    [_handleDelete]: dart.fnType(dart.void, [], {}, {forward: core.bool}),
    markNeedsTextLayout: dart.fnType(dart.void, []),
    setPromptRectRange: dart.fnType(dart.void, [dart.nullable(ui.TextRange)]),
    [_handleSetSelection]: dart.fnType(dart.void, [text_editing.TextSelection]),
    [_handleMoveCursorForwardByCharacter]: dart.fnType(dart.void, [core.bool]),
    [_handleMoveCursorBackwardByCharacter]: dart.fnType(dart.void, [core.bool]),
    [_handleMoveCursorForwardByWord]: dart.fnType(dart.void, [core.bool]),
    [_handleMoveCursorBackwardByWord]: dart.fnType(dart.void, [core.bool]),
    [_getNextWord]: dart.fnType(dart.nullable(ui.TextRange), [core.int]),
    [_getPreviousWord]: dart.fnType(dart.nullable(ui.TextRange), [core.int]),
    [_onlyWhitespace]: dart.fnType(core.bool, [ui.TextRange]),
    [_getMaxScrollExtent]: dart.fnType(core.double, [ui.Size]),
    getEndpointsForSelection: dart.fnType(core.List$(editable.TextSelectionPoint), [text_editing.TextSelection]),
    getRectForComposingRange: dart.fnType(dart.nullable(ui.Rect), [ui.TextRange]),
    getPositionForPoint: dart.fnType(ui.TextPosition, [ui.Offset]),
    getLocalRectForCaret: dart.fnType(ui.Rect, [ui.TextPosition]),
    [_preferredHeight]: dart.fnType(core.double, [core.double]),
    computeDistanceToActualBaseline: dart.fnType(core.double, [ui.TextBaseline]),
    handleSecondaryTapDown: dart.fnType(dart.void, [tap.TapDownDetails]),
    handleTapDown: dart.fnType(dart.void, [tap.TapDownDetails]),
    [_handleTapDown]: dart.fnType(dart.void, [tap.TapDownDetails]),
    handleTap: dart.fnType(dart.void, []),
    [_handleTap]: dart.fnType(dart.void, []),
    handleDoubleTap: dart.fnType(dart.void, []),
    handleLongPress: dart.fnType(dart.void, []),
    [_handleLongPress]: dart.fnType(dart.void, []),
    selectPosition: dart.fnType(dart.void, [], {}, {cause: editable.SelectionChangedCause}),
    selectPositionAt: dart.fnType(dart.void, [], {to: dart.nullable(ui.Offset)}, {cause: editable.SelectionChangedCause, from: ui.Offset}),
    selectWord: dart.fnType(dart.void, [], {}, {cause: editable.SelectionChangedCause}),
    selectWordsInRange: dart.fnType(dart.void, [], {to: dart.nullable(ui.Offset)}, {cause: editable.SelectionChangedCause, from: ui.Offset}),
    selectWordEdge: dart.fnType(dart.void, [], {}, {cause: editable.SelectionChangedCause}),
    [_selectWordAtOffset]: dart.fnType(text_editing.TextSelection, [ui.TextPosition]),
    [_selectLineAtOffset]: dart.fnType(text_editing.TextSelection, [ui.TextPosition]),
    [_layoutText]: dart.fnType(dart.void, [], {maxWidth: core.double, minWidth: core.double}, {}),
    [_computeCaretPrototype]: dart.fnType(dart.void, []),
    [_getPixelPerfectCursorOffset]: dart.fnType(ui.Offset, [ui.Rect]),
    [_paintCaret]: dart.fnType(dart.void, [ui.Canvas, ui.Offset, ui.TextPosition]),
    setFloatingCursor: dart.fnType(dart.void, [text_input.FloatingCursorDragState, ui.Offset, ui.TextPosition], {resetLerpValue: dart.nullable(core.double)}, {}),
    [_paintFloatingCaret]: dart.fnType(dart.void, [ui.Canvas, ui.Offset]),
    calculateBoundedFloatingCursorOffset: dart.fnType(ui.Offset, [ui.Offset]),
    [_paintSelection]: dart.fnType(dart.void, [ui.Canvas, ui.Offset]),
    [_paintPromptRectIfNeeded]: dart.fnType(dart.void, [ui.Canvas, ui.Offset]),
    [_paintContents]: dart.fnType(dart.void, [object.PaintingContext, ui.Offset]),
    [_paintHandleLayers]: dart.fnType(dart.void, [object.PaintingContext, core.List$(editable.TextSelectionPoint)])
  }));
  dart.setGetterSignature(editable.RenderEditable, () => ({
    __proto__: dart.getGetters(editable.RenderEditable.__proto__),
    textHeightBehavior: dart.nullable(ui.TextHeightBehavior),
    textWidthBasis: text_painter.TextWidthBasis,
    devicePixelRatio: core.double,
    obscuringCharacter: core.String,
    obscureText: core.bool,
    selectionStartInViewport: change_notifier.ValueListenable$(core.bool),
    selectionEndInViewport: change_notifier.ValueListenable$(core.bool),
    [_plainText]: core.String,
    text: dart.nullable(text_span.TextSpan),
    textAlign: ui.TextAlign,
    textDirection: ui.TextDirection,
    locale: dart.nullable(ui.Locale),
    strutStyle: dart.nullable(strut_style.StrutStyle),
    cursorColor: dart.nullable(ui.Color),
    backgroundCursorColor: dart.nullable(ui.Color),
    showCursor: change_notifier.ValueNotifier$(core.bool),
    hasFocus: core.bool,
    forceLine: core.bool,
    readOnly: core.bool,
    maxLines: dart.nullable(core.int),
    minLines: dart.nullable(core.int),
    expands: core.bool,
    selectionColor: dart.nullable(ui.Color),
    textScaleFactor: core.double,
    selection: dart.nullable(text_editing.TextSelection),
    offset: viewport_offset.ViewportOffset,
    cursorWidth: core.double,
    cursorHeight: core.double,
    paintCursorAboveText: core.bool,
    cursorOffset: dart.nullable(ui.Offset),
    cursorRadius: dart.nullable(ui.Radius),
    startHandleLayerLink: layer.LayerLink,
    endHandleLayerLink: layer.LayerLink,
    floatingCursorAddedMargin: edge_insets.EdgeInsets,
    [_floatingCursorOffset]: ui.Offset,
    [_floatingCursorTextPosition]: ui.TextPosition,
    selectionHeightStyle: ui.BoxHeightStyle,
    selectionWidthStyle: ui.BoxWidthStyle,
    enableInteractiveSelection: dart.nullable(core.bool),
    selectionEnabled: core.bool,
    promptRectColor: dart.nullable(ui.Color),
    maxScrollExtent: core.double,
    [_caretMargin]: core.double,
    clipBehavior: ui.Clip,
    [_isMultiline]: core.bool,
    [_viewportAxis]: basic_types.Axis,
    [_paintOffset]: ui.Offset,
    [_viewportExtent]: core.double,
    [_hasVisualOverflow]: core.bool,
    preferredLineHeight: core.double,
    [_tap]: tap.TapGestureRecognizer,
    [_longPress]: long_press.LongPressGestureRecognizer,
    lastSecondaryTapDownPosition: dart.nullable(ui.Offset),
    [_caretPrototype]: ui.Rect
  }));
  dart.setSetterSignature(editable.RenderEditable, () => ({
    __proto__: dart.getSetters(editable.RenderEditable.__proto__),
    textHeightBehavior: dart.nullable(ui.TextHeightBehavior),
    textWidthBasis: text_painter.TextWidthBasis,
    devicePixelRatio: core.double,
    obscuringCharacter: core.String,
    obscureText: core.bool,
    text: dart.nullable(text_span.TextSpan),
    textAlign: ui.TextAlign,
    textDirection: ui.TextDirection,
    locale: dart.nullable(ui.Locale),
    strutStyle: dart.nullable(strut_style.StrutStyle),
    cursorColor: dart.nullable(ui.Color),
    backgroundCursorColor: dart.nullable(ui.Color),
    showCursor: change_notifier.ValueNotifier$(core.bool),
    hasFocus: core.bool,
    forceLine: core.bool,
    readOnly: core.bool,
    maxLines: dart.nullable(core.int),
    minLines: dart.nullable(core.int),
    expands: core.bool,
    selectionColor: dart.nullable(ui.Color),
    textScaleFactor: core.double,
    selection: dart.nullable(text_editing.TextSelection),
    offset: viewport_offset.ViewportOffset,
    cursorWidth: core.double,
    cursorHeight: dart.nullable(core.double),
    paintCursorAboveText: core.bool,
    cursorOffset: dart.nullable(ui.Offset),
    cursorRadius: dart.nullable(ui.Radius),
    startHandleLayerLink: layer.LayerLink,
    endHandleLayerLink: layer.LayerLink,
    floatingCursorAddedMargin: edge_insets.EdgeInsets,
    [_floatingCursorOffset]: ui.Offset,
    [_floatingCursorTextPosition]: ui.TextPosition,
    selectionHeightStyle: ui.BoxHeightStyle,
    selectionWidthStyle: ui.BoxWidthStyle,
    enableInteractiveSelection: dart.nullable(core.bool),
    promptRectColor: dart.nullable(ui.Color),
    clipBehavior: ui.Clip,
    [_tap]: tap.TapGestureRecognizer,
    [_longPress]: long_press.LongPressGestureRecognizer,
    [_caretPrototype]: ui.Rect
  }));
  dart.setLibraryUri(editable.RenderEditable, I[1]);
  dart.setFieldSignature(editable.RenderEditable, () => ({
    __proto__: dart.getFields(editable.RenderEditable.__proto__),
    onSelectionChanged: dart.fieldType(dart.nullable(dart.fnType(dart.void, [text_editing.TextSelection, editable.RenderEditable, editable.SelectionChangedCause]))),
    [_textLayoutLastMaxWidth]: dart.fieldType(dart.nullable(core.double)),
    [_textLayoutLastMinWidth]: dart.fieldType(dart.nullable(core.double)),
    onCaretChanged: dart.fieldType(dart.nullable(dart.fnType(dart.void, [ui.Rect]))),
    ignorePointer: dart.fieldType(core.bool),
    [_devicePixelRatio]: dart.fieldType(core.double),
    [_obscuringCharacter]: dart.fieldType(core.String),
    [_obscureText]: dart.fieldType(core.bool),
    textSelectionDelegate: dart.fieldType(text_input.TextSelectionDelegate),
    [_lastCaretRect]: dart.fieldType(dart.nullable(ui.Rect)),
    [_selectionStartInViewport]: dart.finalFieldType(change_notifier.ValueNotifier$(core.bool)),
    [_selectionEndInViewport]: dart.finalFieldType(change_notifier.ValueNotifier$(core.bool)),
    [_cursorResetLocation]: dart.fieldType(core.int),
    [_wasSelectingVerticallyWithKeyboard]: dart.fieldType(core.bool),
    [_cachedPlainText]: dart.fieldType(dart.nullable(core.String)),
    [_textPainter]: dart.finalFieldType(text_painter.TextPainter),
    [_cursorColor]: dart.fieldType(dart.nullable(ui.Color)),
    [_backgroundCursorColor]: dart.fieldType(dart.nullable(ui.Color)),
    [_showCursor]: dart.fieldType(change_notifier.ValueNotifier$(core.bool)),
    [_hasFocus]: dart.fieldType(core.bool),
    [_listenerAttached]: dart.fieldType(core.bool),
    [_forceLine]: dart.fieldType(core.bool),
    [_readOnly]: dart.fieldType(core.bool),
    [_maxLines]: dart.fieldType(dart.nullable(core.int)),
    [_minLines]: dart.fieldType(dart.nullable(core.int)),
    [_expands]: dart.fieldType(core.bool),
    [_selectionColor]: dart.fieldType(dart.nullable(ui.Color)),
    [_selectionRects]: dart.fieldType(dart.nullable(core.List$(ui.TextBox))),
    [_selection]: dart.fieldType(dart.nullable(text_editing.TextSelection)),
    [_offset]: dart.fieldType(viewport_offset.ViewportOffset),
    [_cursorWidth]: dart.fieldType(core.double),
    [_cursorHeight]: dart.fieldType(dart.nullable(core.double)),
    [_paintCursorOnTop]: dart.fieldType(core.bool),
    [_cursorOffset]: dart.fieldType(dart.nullable(ui.Offset)),
    [_cursorRadius]: dart.fieldType(dart.nullable(ui.Radius)),
    [_startHandleLayerLink]: dart.fieldType(layer.LayerLink),
    [_endHandleLayerLink]: dart.fieldType(layer.LayerLink),
    [_floatingCursorAddedMargin]: dart.fieldType(edge_insets.EdgeInsets),
    [_floatingCursorOn]: dart.fieldType(core.bool),
    [__RenderEditable__floatingCursorOffset]: dart.fieldType(dart.nullable(ui.Offset)),
    [__RenderEditable__floatingCursorOffset_isSet]: dart.fieldType(core.bool),
    [__RenderEditable__floatingCursorTextPosition]: dart.fieldType(dart.nullable(ui.TextPosition)),
    [__RenderEditable__floatingCursorTextPosition_isSet]: dart.fieldType(core.bool),
    [_selectionHeightStyle]: dart.fieldType(ui.BoxHeightStyle),
    [_selectionWidthStyle]: dart.fieldType(ui.BoxWidthStyle),
    [_enableInteractiveSelection]: dart.fieldType(dart.nullable(core.bool)),
    [_promptRectRange]: dart.fieldType(dart.nullable(ui.TextRange)),
    [_maxScrollExtent]: dart.fieldType(core.double),
    [_clipBehavior]: dart.fieldType(ui.Clip),
    [__RenderEditable__tap]: dart.fieldType(dart.nullable(tap.TapGestureRecognizer)),
    [__RenderEditable__tap_isSet]: dart.fieldType(core.bool),
    [__RenderEditable__longPress]: dart.fieldType(dart.nullable(long_press.LongPressGestureRecognizer)),
    [__RenderEditable__longPress_isSet]: dart.fieldType(core.bool),
    [_lastTapDownPosition]: dart.fieldType(dart.nullable(ui.Offset)),
    [_lastSecondaryTapDownPosition]: dart.fieldType(dart.nullable(ui.Offset)),
    [__RenderEditable__caretPrototype]: dart.fieldType(dart.nullable(ui.Rect)),
    [__RenderEditable__caretPrototype_isSet]: dart.fieldType(core.bool),
    [_relativeOrigin]: dart.fieldType(ui.Offset),
    [_previousOffset]: dart.fieldType(dart.nullable(ui.Offset)),
    [_resetOriginOnLeft]: dart.fieldType(core.bool),
    [_resetOriginOnRight]: dart.fieldType(core.bool),
    [_resetOriginOnTop]: dart.fieldType(core.bool),
    [_resetOriginOnBottom]: dart.fieldType(core.bool),
    [_resetFloatingCursorAnimationValue]: dart.fieldType(dart.nullable(core.double)),
    [_promptRectPaint]: dart.finalFieldType(ui.Paint),
    [_clipRectLayer]: dart.fieldType(dart.nullable(layer.ClipRectLayer))
  }));
  dart.defineLazy(editable.RenderEditable, {
    /*editable.RenderEditable._movementKeys*/get _movementKeys() {
      return T.LinkedHashSetOfLogicalKeyboardKey().from([keyboard_key.LogicalKeyboardKey.arrowRight, keyboard_key.LogicalKeyboardKey.arrowLeft, keyboard_key.LogicalKeyboardKey.arrowUp, keyboard_key.LogicalKeyboardKey.arrowDown]);
Lubber's avatar
Lubber committed
2456
    },
2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468
    /*editable.RenderEditable._shortcutKeys*/get _shortcutKeys() {
      return T.LinkedHashSetOfLogicalKeyboardKey().from([keyboard_key.LogicalKeyboardKey.keyA, keyboard_key.LogicalKeyboardKey.keyC, keyboard_key.LogicalKeyboardKey.keyV, keyboard_key.LogicalKeyboardKey.keyX, keyboard_key.LogicalKeyboardKey.delete, keyboard_key.LogicalKeyboardKey.backspace]);
    },
    /*editable.RenderEditable._nonModifierKeys*/get _nonModifierKeys() {
      return (() => {
        let t6 = T.LinkedHashSetOfLogicalKeyboardKey().of(editable.RenderEditable._shortcutKeys);
        t6.addAll(editable.RenderEditable._movementKeys);
        return t6;
      })();
    },
    /*editable.RenderEditable._modifierKeys*/get _modifierKeys() {
      return T.LinkedHashSetOfLogicalKeyboardKey().from([keyboard_key.LogicalKeyboardKey.shift, keyboard_key.LogicalKeyboardKey.control, keyboard_key.LogicalKeyboardKey.alt]);
Lubber's avatar
Lubber committed
2469
    },
2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480
    /*editable.RenderEditable._macOsModifierKeys*/get _macOsModifierKeys() {
      return T.LinkedHashSetOfLogicalKeyboardKey().from([keyboard_key.LogicalKeyboardKey.shift, keyboard_key.LogicalKeyboardKey.meta, keyboard_key.LogicalKeyboardKey.alt]);
    },
    /*editable.RenderEditable._interestingKeys*/get _interestingKeys() {
      return (() => {
        let t7 = T.LinkedHashSetOfLogicalKeyboardKey().of(editable.RenderEditable._modifierKeys);
        t7.addAll(editable.RenderEditable._macOsModifierKeys);
        t7.addAll(editable.RenderEditable._nonModifierKeys);
        return t7;
      })();
    }
Lubber's avatar
Lubber committed
2481
  }, false);
2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519
  editable._isWhitespace = function _isWhitespace(codeUnit) {
    if (codeUnit == null) dart.nullFailed(I[0], 108, 24, "codeUnit");
    switch (codeUnit) {
      case 9:
      case 10:
      case 11:
      case 12:
      case 13:
      case 28:
      case 29:
      case 30:
      case 31:
      case 32:
      case 160:
      case 5760:
      case 8192:
      case 8193:
      case 8194:
      case 8195:
      case 8196:
      case 8197:
      case 8198:
      case 8199:
      case 8200:
      case 8201:
      case 8202:
      case 8239:
      case 8287:
      case 12288:
      {
        break;
      }
      default:
      {
        return false;
      }
    }
    return true;
Lubber's avatar
Lubber committed
2520
  };
2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538
  var OffsetBase__dy = dart.privateName(ui, "OffsetBase._dy");
  var OffsetBase__dx = dart.privateName(ui, "OffsetBase._dx");
  dart.defineLazy(editable, {
    /*editable._kCaretGap*/get _kCaretGap() {
      return 1;
    },
    /*editable._kCaretHeightOffset*/get _kCaretHeightOffset() {
      return 2;
    },
    /*editable._kFloatingCaretSizeIncrease*/get _kFloatingCaretSizeIncrease() {
      return C[24] || CT.C24;
    },
    /*editable._kFloatingCaretRadius*/get _kFloatingCaretRadius() {
      return 1;
    }
  }, false);
  dart.trackLibraries("packages/flutter/src/rendering/editable.dart", {
    "package:flutter/src/rendering/editable.dart": editable
Lubber's avatar
Lubber committed
2539
  }, {
2540
  }, '{"version":3,"sourceRoot":"","sources":["editable.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+DA;;;QA3BK;;;;;EA2BL;;;;;;;;;;;;;;;;;;;;;IAoBe;;;;;;IAGQ;;;;;;;AAInB,cAAQ;;;AAEJ,gBAAmB,UAAV,cAAK;;;;AAEd,gBAAmB,UAAV,cAAK;;;;AAEd,gBAAe,UAAN;;;;AANb;;;IAQF;;8CApB8B,OAAY;QAAZ;;IAAY;UAC/B,AAAM,KAAD;;EAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8NA;;;;;;IAMJ;;;;;;IAahB;;;;;;IA8DiB;;;;;;;AA3DwB,YAAA,AAAa;IAAkB;2BAClC;AACzC,UAAoC,YAAhC,AAAa,uCAAsB,KAAK,GAC1C;AACqC,MAAvC,AAAa,wCAAqB,KAAK;AAClB,MAArB;IACF;;AAGqC,YAAA,AAAa;IAAc;;UAC9B;AAChC,YAAO,AAAM,KAAD;AACZ,UAAI,AAAa,AAAe,qCAAG,KAAK,EACtC;AACiC,MAAnC,AAAa,oCAAiB,KAA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,wCAAgB;YAAuB;0DACvE;AACA;AACA;;;;;;QAlZgB;AACrB,YAAQ,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BZ;;;;AAEA,cAAO;;;AAEX,UAAO;EACT;;;;MA1Ha,mBAAU;;;MACV,4BAAmB;;;MAInB,oCAA2B;;;MAG3B,8BAAqB","file":"../../../../../../../packages/flutter/src/rendering/editable.dart.lib.js"}');
Lubber's avatar
Lubber committed
2541 2542
  // Exports:
  return {
2543
    src__rendering__editable: editable
Lubber's avatar
Lubber committed
2544 2545 2546
  };
}));

2547
//# sourceMappingURL=editable.dart.lib.js.map
2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017
=======
  (decoration_image.ImageRepeat.new = function(index, _name) {
    if (index == null) dart.nullFailed(I[0], 21, 6, "index");
    if (_name == null) dart.nullFailed(I[0], 21, 6, "_name");
    this.index = index;
    this[_name$] = _name;
    ;
  }).prototype = decoration_image.ImageRepeat.prototype;
  dart.addTypeTests(decoration_image.ImageRepeat);
  dart.addTypeCaches(decoration_image.ImageRepeat);
  dart.setLibraryUri(decoration_image.ImageRepeat, I[1]);
  dart.setFieldSignature(decoration_image.ImageRepeat, () => ({
    __proto__: dart.getFields(decoration_image.ImageRepeat.__proto__),
    index: dart.finalFieldType(core.int),
    [_name$]: dart.finalFieldType(core.String)
  }));
  dart.defineExtensionMethods(decoration_image.ImageRepeat, ['toString']);
  decoration_image.ImageRepeat.repeat = C[0] || CT.C0;
  decoration_image.ImageRepeat.repeatX = C[1] || CT.C1;
  decoration_image.ImageRepeat.repeatY = C[2] || CT.C2;
  decoration_image.ImageRepeat.noRepeat = C[3] || CT.C3;
  decoration_image.ImageRepeat.values = C[4] || CT.C4;
  var image$ = dart.privateName(decoration_image, "DecorationImage.image");
  var onError$ = dart.privateName(decoration_image, "DecorationImage.onError");
  var colorFilter$ = dart.privateName(decoration_image, "DecorationImage.colorFilter");
  var fit$ = dart.privateName(decoration_image, "DecorationImage.fit");
  var alignment$ = dart.privateName(decoration_image, "DecorationImage.alignment");
  var centerSlice$ = dart.privateName(decoration_image, "DecorationImage.centerSlice");
  var repeat$ = dart.privateName(decoration_image, "DecorationImage.repeat");
  var matchTextDirection$ = dart.privateName(decoration_image, "DecorationImage.matchTextDirection");
  var scale$ = dart.privateName(decoration_image, "DecorationImage.scale");
  var Alignment_y = dart.privateName(alignment, "Alignment.y");
  var Alignment_x = dart.privateName(alignment, "Alignment.x");
  decoration_image.DecorationImage = class DecorationImage extends core.Object {
    get image() {
      return this[image$];
    }
    set image(value) {
      super.image = value;
    }
    get onError() {
      return this[onError$];
    }
    set onError(value) {
      super.onError = value;
    }
    get colorFilter() {
      return this[colorFilter$];
    }
    set colorFilter(value) {
      super.colorFilter = value;
    }
    get fit() {
      return this[fit$];
    }
    set fit(value) {
      super.fit = value;
    }
    get alignment() {
      return this[alignment$];
    }
    set alignment(value) {
      super.alignment = value;
    }
    get centerSlice() {
      return this[centerSlice$];
    }
    set centerSlice(value) {
      super.centerSlice = value;
    }
    get repeat() {
      return this[repeat$];
    }
    set repeat(value) {
      super.repeat = value;
    }
    get matchTextDirection() {
      return this[matchTextDirection$];
    }
    set matchTextDirection(value) {
      super.matchTextDirection = value;
    }
    get scale() {
      return this[scale$];
    }
    set scale(value) {
      super.scale = value;
    }
    createPainter(onChanged) {
      if (onChanged == null) dart.nullFailed(I[0], 149, 53, "onChanged");
      if (!(onChanged != null)) dart.assertFailed(null, I[0], 150, 12, "onChanged != null");
      return new decoration_image.DecorationImagePainter.__(this, onChanged);
    }
    _equals(other) {
      if (other == null) return false;
      if (this === other) return true;
      if (!dart.equals(dart.runtimeType(other), this[$runtimeType])) return false;
      return decoration_image.DecorationImage.is(other) && dart.equals(other.image, this.image) && dart.equals(other.colorFilter, this.colorFilter) && other.fit == this.fit && dart.equals(other.alignment, this.alignment) && dart.equals(other.centerSlice, this.centerSlice) && other.repeat == this.repeat && other.matchTextDirection == this.matchTextDirection && other.scale == this.scale;
    }
    get hashCode() {
      return ui.hashValues(this.image, this.colorFilter, this.fit, this.alignment, this.centerSlice, this.repeat, this.matchTextDirection, this.scale);
    }
    toString() {
      let properties = (() => {
        let t0 = T.JSArrayOfString().of([dart.str(this.image)]);
        if (this.colorFilter != null) t0[$add](dart.str(this.colorFilter));
        if (this.fit != null && !(this.fit == box_fit.BoxFit.fill && this.centerSlice != null) && !(this.fit == box_fit.BoxFit.scaleDown && this.centerSlice == null)) t0[$add](dart.str(this.fit));
        t0[$add](dart.str(this.alignment));
        if (this.centerSlice != null) t0[$add]("centerSlice: " + dart.str(this.centerSlice));
        if (this.repeat != decoration_image.ImageRepeat.noRepeat) t0[$add](dart.str(this.repeat));
        if (dart.test(this.matchTextDirection)) t0[$add]("match text direction");
        t0[$add]("scale: " + dart.str(this.scale));
        return t0;
      })();
      return dart.str(object.objectRuntimeType(this, "DecorationImage")) + "(" + dart.str(properties[$join](", ")) + ")";
    }
  };
  (decoration_image.DecorationImage.new = function(opts) {
    let image = opts && 'image' in opts ? opts.image : null;
    if (image == null) dart.nullFailed(I[0], 46, 19, "image");
    let onError = opts && 'onError' in opts ? opts.onError : null;
    let colorFilter = opts && 'colorFilter' in opts ? opts.colorFilter : null;
    let fit = opts && 'fit' in opts ? opts.fit : null;
    let alignment = opts && 'alignment' in opts ? opts.alignment : C[5] || CT.C5;
    if (alignment == null) dart.nullFailed(I[0], 50, 10, "alignment");
    let centerSlice = opts && 'centerSlice' in opts ? opts.centerSlice : null;
    let repeat = opts && 'repeat' in opts ? opts.repeat : C[3] || CT.C3;
    if (repeat == null) dart.nullFailed(I[0], 52, 10, "repeat");
    let matchTextDirection = opts && 'matchTextDirection' in opts ? opts.matchTextDirection : false;
    if (matchTextDirection == null) dart.nullFailed(I[0], 53, 10, "matchTextDirection");
    let scale = opts && 'scale' in opts ? opts.scale : 1;
    if (scale == null) dart.nullFailed(I[0], 54, 10, "scale");
    this[image$] = image;
    this[onError$] = onError;
    this[colorFilter$] = colorFilter;
    this[fit$] = fit;
    this[alignment$] = alignment;
    this[centerSlice$] = centerSlice;
    this[repeat$] = repeat;
    this[matchTextDirection$] = matchTextDirection;
    this[scale$] = scale;
    if (!(image != null)) dart.assertFailed(null, I[0], 55, 15, "image != null");
    if (!(alignment != null)) dart.assertFailed(null, I[0], 56, 15, "alignment != null");
    if (!(repeat != null)) dart.assertFailed(null, I[0], 57, 15, "repeat != null");
    if (!(matchTextDirection != null)) dart.assertFailed(null, I[0], 58, 15, "matchTextDirection != null");
    if (!(scale != null)) dart.assertFailed(null, I[0], 59, 15, "scale != null");
    ;
  }).prototype = decoration_image.DecorationImage.prototype;
  dart.addTypeTests(decoration_image.DecorationImage);
  dart.addTypeCaches(decoration_image.DecorationImage);
  dart.setMethodSignature(decoration_image.DecorationImage, () => ({
    __proto__: dart.getMethods(decoration_image.DecorationImage.__proto__),
    createPainter: dart.fnType(decoration_image.DecorationImagePainter, [dart.fnType(dart.void, [])])
  }));
  dart.setLibraryUri(decoration_image.DecorationImage, I[1]);
  dart.setFieldSignature(decoration_image.DecorationImage, () => ({
    __proto__: dart.getFields(decoration_image.DecorationImage.__proto__),
    image: dart.finalFieldType(image_provider.ImageProvider$(core.Object)),
    onError: dart.finalFieldType(dart.nullable(dart.fnType(dart.void, [core.Object, dart.nullable(core.StackTrace)]))),
    colorFilter: dart.finalFieldType(dart.nullable(ui.ColorFilter)),
    fit: dart.finalFieldType(dart.nullable(box_fit.BoxFit)),
    alignment: dart.finalFieldType(alignment.AlignmentGeometry),
    centerSlice: dart.finalFieldType(dart.nullable(ui.Rect)),
    repeat: dart.finalFieldType(decoration_image.ImageRepeat),
    matchTextDirection: dart.finalFieldType(core.bool),
    scale: dart.finalFieldType(core.double)
  }));
  dart.defineExtensionMethods(decoration_image.DecorationImage, ['_equals', 'toString']);
  dart.defineExtensionAccessors(decoration_image.DecorationImage, ['hashCode']);
  var _imageStream = dart.privateName(decoration_image, "_imageStream");
  var _image = dart.privateName(decoration_image, "_image");
  var _details$ = dart.privateName(decoration_image, "_details");
  var _onChanged$ = dart.privateName(decoration_image, "_onChanged");
  var _handleImage = dart.privateName(decoration_image, "_handleImage");
  decoration_image.DecorationImagePainter = class DecorationImagePainter extends core.Object {
    paint(canvas, rect, clipPath, configuration) {
      let t1, t1$;
      if (canvas == null) dart.nullFailed(I[0], 231, 21, "canvas");
      if (rect == null) dart.nullFailed(I[0], 231, 34, "rect");
      if (configuration == null) dart.nullFailed(I[0], 231, 75, "configuration");
      if (!(canvas != null)) dart.assertFailed(null, I[0], 232, 12, "canvas != null");
      if (!(rect != null)) dart.assertFailed(null, I[0], 233, 12, "rect != null");
      if (!(configuration != null)) dart.assertFailed(null, I[0], 234, 12, "configuration != null");
      let flipHorizontally = false;
      if (dart.test(this[_details$].matchTextDirection)) {
        if (!dart.test(dart.fn(() => {
          if (configuration.textDirection == null) {
            dart.throw(new assertions.FlutterError.fromParts(T.JSArrayOfDiagnosticsNode().of([new assertions.ErrorSummary.new("DecorationImage.matchTextDirection can only be used when a TextDirection is available."), new assertions.ErrorDescription.new("When DecorationImagePainter.paint() was called, there was no text direction provided " + "in the ImageConfiguration object to match."), new (T.DiagnosticsPropertyOfDecorationImage()).new("The DecorationImage was", this[_details$], {style: diagnostics.DiagnosticsTreeStyle.errorProperty}), new (T.DiagnosticsPropertyOfImageConfiguration()).new("The ImageConfiguration was", configuration, {style: diagnostics.DiagnosticsTreeStyle.errorProperty})])));
          }
          return true;
        }, T.VoidTobool())())) dart.assertFailed(null, I[0], 238, 14, "() {\r\n        // We check this first so that the assert will fire immediately, not just\r\n        // when the image is ready.\r\n        if (configuration.textDirection == null) {\r\n          throw FlutterError.fromParts(<DiagnosticsNode>[\r\n            ErrorSummary('DecorationImage.matchTextDirection can only be used when a TextDirection is available.'),\r\n            ErrorDescription(\r\n              'When DecorationImagePainter.paint() was called, there was no text direction provided '\r\n              'in the ImageConfiguration object to match.'\r\n            ),\r\n            DiagnosticsProperty<DecorationImage>('The DecorationImage was', _details, style: DiagnosticsTreeStyle.errorProperty),\r\n            DiagnosticsProperty<ImageConfiguration>('The ImageConfiguration was', configuration, style: DiagnosticsTreeStyle.errorProperty),\r\n          ]);\r\n        }\r\n        return true;\r\n      }()");
        if (configuration.textDirection == ui.TextDirection.rtl) flipHorizontally = true;
      }
      let newImageStream = this[_details$].image.resolve(configuration);
      if (!dart.equals(newImageStream.key, (t1 = this[_imageStream], t1 == null ? null : t1.key))) {
        let listener = new image_stream.ImageStreamListener.new(dart.bind(this, _handleImage), {onError: this[_details$].onError});
        t1$ = this[_imageStream];
        t1$ == null ? null : t1$.removeListener(listener);
        this[_imageStream] = newImageStream;
        dart.nullCheck(this[_imageStream]).addListener(listener);
      }
      if (this[_image] == null) return;
      if (clipPath != null) {
        canvas.save();
        canvas.clipPath(clipPath);
      }
      decoration_image.paintImage({canvas: canvas, rect: rect, image: dart.nullCheck(this[_image]).image, debugImageLabel: dart.nullCheck(this[_image]).debugLabel, scale: dart.notNull(this[_details$].scale) * dart.notNull(dart.nullCheck(this[_image]).scale), colorFilter: this[_details$].colorFilter, fit: this[_details$].fit, alignment: this[_details$].alignment.resolve(configuration.textDirection), centerSlice: this[_details$].centerSlice, repeat: this[_details$].repeat, flipHorizontally: flipHorizontally, filterQuality: ui.FilterQuality.low});
      if (clipPath != null) canvas.restore();
    }
    [_handleImage](value, synchronousCall) {
      let t1;
      if (value == null) dart.nullFailed(I[0], 295, 31, "value");
      if (synchronousCall == null) dart.nullFailed(I[0], 295, 43, "synchronousCall");
      if (dart.equals(this[_image], value)) return;
      if (this[_image] != null && dart.test(dart.nullCheck(this[_image]).isCloneOf(value))) {
        value.dispose();
        return;
      }
      t1 = this[_image];
      t1 == null ? null : t1.dispose();
      this[_image] = value;
      if (!(this[_onChanged$] != null)) dart.assertFailed(null, I[0], 304, 12, "_onChanged != null");
      if (!dart.test(synchronousCall)) this[_onChanged$]();
    }
    dispose() {
      let t1, t1$;
      t1 = this[_imageStream];
      t1 == null ? null : t1.removeListener(new image_stream.ImageStreamListener.new(dart.bind(this, _handleImage), {onError: this[_details$].onError}));
      t1$ = this[_image];
      t1$ == null ? null : t1$.dispose();
      this[_image] = null;
    }
    toString() {
      return dart.str(object.objectRuntimeType(this, "DecorationImagePainter")) + "(stream: " + dart.str(this[_imageStream]) + ", image: " + dart.str(this[_image]) + ") for " + dart.str(this[_details$]);
    }
  };
  (decoration_image.DecorationImagePainter.__ = function(_details, _onChanged) {
    if (_details == null) dart.nullFailed(I[0], 209, 33, "_details");
    if (_onChanged == null) dart.nullFailed(I[0], 209, 48, "_onChanged");
    this[_imageStream] = null;
    this[_image] = null;
    this[_details$] = _details;
    this[_onChanged$] = _onChanged;
    if (!(_details != null)) dart.assertFailed(null, I[0], 209, 69, "_details != null");
    ;
  }).prototype = decoration_image.DecorationImagePainter.prototype;
  dart.addTypeTests(decoration_image.DecorationImagePainter);
  dart.addTypeCaches(decoration_image.DecorationImagePainter);
  dart.setMethodSignature(decoration_image.DecorationImagePainter, () => ({
    __proto__: dart.getMethods(decoration_image.DecorationImagePainter.__proto__),
    paint: dart.fnType(dart.void, [ui.Canvas, ui.Rect, dart.nullable(ui.Path), image_provider.ImageConfiguration]),
    [_handleImage]: dart.fnType(dart.void, [image_stream.ImageInfo, core.bool]),
    dispose: dart.fnType(dart.void, [])
  }));
  dart.setLibraryUri(decoration_image.DecorationImagePainter, I[1]);
  dart.setFieldSignature(decoration_image.DecorationImagePainter, () => ({
    __proto__: dart.getFields(decoration_image.DecorationImagePainter.__proto__),
    [_details$]: dart.finalFieldType(decoration_image.DecorationImage),
    [_onChanged$]: dart.finalFieldType(dart.fnType(dart.void, [])),
    [_imageStream]: dart.fieldType(dart.nullable(image_stream.ImageStream)),
    [_image]: dart.fieldType(dart.nullable(image_stream.ImageInfo))
  }));
  dart.defineExtensionMethods(decoration_image.DecorationImagePainter, ['toString']);
  var _name = dart.privateName(ui, "_name");
  var _CkMatrixColorFilter_matrix = dart.privateName(_engine, "_CkMatrixColorFilter.matrix");
  decoration_image.debugFlushLastFrameImageSizeInfo = function debugFlushLastFrameImageSizeInfo() {
    if (!dart.test(dart.fn(() => {
      decoration_image._lastFrameImageSizeInfo = T.LinkedHashSetOfImageSizeInfo().new();
      return true;
    }, T.VoidTobool())())) dart.assertFailed(null, I[0], 343, 10, "() {\r\n    _lastFrameImageSizeInfo = <ImageSizeInfo>{};\r\n    return true;\r\n  }()");
  };
  decoration_image.paintImage = function paintImage(opts) {
    let t1, t1$, t1$0, t1$1;
    let canvas = opts && 'canvas' in opts ? opts.canvas : null;
    if (canvas == null) dart.nullFailed(I[0], 418, 19, "canvas");
    let rect = opts && 'rect' in opts ? opts.rect : null;
    if (rect == null) dart.nullFailed(I[0], 419, 17, "rect");
    let image = opts && 'image' in opts ? opts.image : null;
    if (image == null) dart.nullFailed(I[0], 420, 21, "image");
    let debugImageLabel = opts && 'debugImageLabel' in opts ? opts.debugImageLabel : null;
    let scale = opts && 'scale' in opts ? opts.scale : 1;
    if (scale == null) dart.nullFailed(I[0], 422, 10, "scale");
    let colorFilter = opts && 'colorFilter' in opts ? opts.colorFilter : null;
    let fit = opts && 'fit' in opts ? opts.fit : null;
    let alignment = opts && 'alignment' in opts ? opts.alignment : C[5] || CT.C5;
    if (alignment == null) dart.nullFailed(I[0], 425, 13, "alignment");
    let centerSlice = opts && 'centerSlice' in opts ? opts.centerSlice : null;
    let repeat = opts && 'repeat' in opts ? opts.repeat : C[3] || CT.C3;
    if (repeat == null) dart.nullFailed(I[0], 427, 15, "repeat");
    let flipHorizontally = opts && 'flipHorizontally' in opts ? opts.flipHorizontally : false;
    if (flipHorizontally == null) dart.nullFailed(I[0], 428, 8, "flipHorizontally");
    let invertColors = opts && 'invertColors' in opts ? opts.invertColors : false;
    if (invertColors == null) dart.nullFailed(I[0], 429, 8, "invertColors");
    let filterQuality = opts && 'filterQuality' in opts ? opts.filterQuality : C[6] || CT.C6;
    if (filterQuality == null) dart.nullFailed(I[0], 430, 17, "filterQuality");
    let isAntiAlias = opts && 'isAntiAlias' in opts ? opts.isAntiAlias : false;
    if (isAntiAlias == null) dart.nullFailed(I[0], 431, 8, "isAntiAlias");
    if (!(canvas != null)) dart.assertFailed(null, I[0], 433, 10, "canvas != null");
    if (!(image != null)) dart.assertFailed(null, I[0], 434, 10, "image != null");
    if (!(alignment != null)) dart.assertFailed(null, I[0], 435, 10, "alignment != null");
    if (!(repeat != null)) dart.assertFailed(null, I[0], 436, 10, "repeat != null");
    if (!(flipHorizontally != null)) dart.assertFailed(null, I[0], 437, 10, "flipHorizontally != null");
    if (!(isAntiAlias != null)) dart.assertFailed(null, I[0], 438, 10, "isAntiAlias != null");
    if (!dart.test((t1$ = (t1 = image.debugGetOpenHandleStackTraces(), t1 == null ? null : t1[$isNotEmpty]), t1$ == null ? true : t1$))) dart.assertFailed("Cannot paint an image that is disposed.\n" + "The caller of paintImage is expected to wait to dispose the image until " + "after painting has completed.", I[0], 440, 5, "image.debugGetOpenHandleStackTraces()?.isNotEmpty ?? true");
    if (dart.test(rect.isEmpty)) return;
    let outputSize = rect.size;
    let inputSize = new ui.Size.new(image.width[$toDouble](), image.height[$toDouble]());
    let sliceBorder = null;
    if (centerSlice != null) {
      sliceBorder = ui.Offset.as(inputSize['/'](scale)['-'](centerSlice.size));
      outputSize = ui.Size.as(outputSize['-'](sliceBorder));
      inputSize = ui.Size.as(inputSize['-'](sliceBorder['*'](scale)));
    }
    fit == null ? fit = centerSlice == null ? box_fit.BoxFit.scaleDown : box_fit.BoxFit.fill : null;
    if (!(centerSlice == null || fit != box_fit.BoxFit.none && fit != box_fit.BoxFit.cover)) dart.assertFailed(null, I[0], 456, 10, "centerSlice == null || (fit != BoxFit.none && fit != BoxFit.cover)");
    let fittedSizes = box_fit.applyBoxFit(fit, inputSize['/'](scale), outputSize);
    let sourceSize = fittedSizes.source['*'](scale);
    let destinationSize = fittedSizes.destination;
    if (centerSlice != null) {
      outputSize = outputSize['+'](dart.nullCheck(sliceBorder));
      destinationSize = destinationSize['+'](sliceBorder);
      if (!dart.equals(sourceSize, inputSize)) dart.assertFailed("centerSlice was used with a BoxFit that does not guarantee that the image is fully visible.", I[0], 465, 12, "sourceSize == inputSize");
    }
    if (repeat != decoration_image.ImageRepeat.noRepeat && dart.equals(destinationSize, outputSize)) {
      repeat = decoration_image.ImageRepeat.noRepeat;
    }
    let paint = (t1$0 = ui.Paint.new(), (() => {
      t1$0.isAntiAlias = isAntiAlias;
      return t1$0;
    })());
    if (colorFilter != null) paint.colorFilter = colorFilter;
    if (!dart.equals(sourceSize, destinationSize)) {
      paint.filterQuality = filterQuality;
    }
    paint.invertColors = invertColors;
    let halfWidthDelta = (dart.notNull(outputSize.width) - dart.notNull(destinationSize.width)) / 2.0;
    let halfHeightDelta = (dart.notNull(outputSize.height) - dart.notNull(destinationSize.height)) / 2.0;
    let dx = halfWidthDelta + dart.notNull(dart.test(flipHorizontally) ? -dart.notNull(alignment.x) : alignment.x) * halfWidthDelta;
    let dy = halfHeightDelta + dart.notNull(alignment.y) * halfHeightDelta;
    let destinationPosition = rect.topLeft.translate(dx, dy);
    let destinationRect = destinationPosition['&'](destinationSize);
    let invertedCanvas = false;
    if (!false) {
      let sizeInfo = new debug.ImageSizeInfo.new({source: (t1$1 = debugImageLabel, t1$1 == null ? "<Unknown Image(" + dart.str(image.width) + "×" + dart.str(image.height) + ")>" : t1$1), imageSize: new ui.Size.new(image.width[$toDouble](), image.height[$toDouble]()), displaySize: outputSize});
      if (!dart.test(dart.fn(() => {
        let t1;
        if (dart.test(debug.debugInvertOversizedImages) && dart.notNull(sizeInfo.decodedSizeInBytes) > dart.notNull(sizeInfo.displaySizeInBytes) + dart.notNull(debug.debugImageOverheadAllowance)) {
          let overheadInKilobytes = ((dart.notNull(sizeInfo.decodedSizeInBytes) - dart.notNull(sizeInfo.displaySizeInBytes)) / 1024)[$truncate]();
          let outputWidth = outputSize.width[$toInt]();
          let outputHeight = outputSize.height[$toInt]();
          assertions.FlutterError.reportError(new assertions.FlutterErrorDetails.new({exception: "Image " + dart.str(debugImageLabel) + " has a display size of " + dart.str(outputWidth) + "×" + dart.str(outputHeight) + " but a decode size of " + dart.str(image.width) + "×" + dart.str(image.height) + ", which uses an additional " + dart.str(overheadInKilobytes) + "kb.\n\n" + "Consider resizing the asset ahead of time, supplying a cacheWidth " + "parameter of " + dart.str(outputWidth) + ", a cacheHeight parameter of " + dart.str(outputHeight) + ", or using a ResizeImage.", library: "painting library", context: new assertions.ErrorDescription.new("while painting an image")}));
          canvas.saveLayer(destinationRect, (t1 = ui.Paint.new(), (() => {
            t1.colorFilter = C[7] || CT.C7;
            return t1;
          })()));
          let dy = -(dart.notNull(rect.top) + dart.notNull(rect.height) / 2.0);
          canvas.translate(0.0, -dy);
          canvas.scale(1.0, -1.0);
          canvas.translate(0.0, dy);
          invertedCanvas = true;
        }
        return true;
      }, T.VoidTobool())())) dart.assertFailed(null, I[0], 497, 12, "() {\r\n      if (debugInvertOversizedImages &&\r\n          sizeInfo.decodedSizeInBytes > sizeInfo.displaySizeInBytes + debugImageOverheadAllowance) {\r\n        final int overheadInKilobytes = (sizeInfo.decodedSizeInBytes - sizeInfo.displaySizeInBytes) ~/ 1024;\r\n        final int outputWidth = outputSize.width.toInt();\r\n        final int outputHeight = outputSize.height.toInt();\r\n        FlutterError.reportError(FlutterErrorDetails(\r\n          exception: 'Image $debugImageLabel has a display size of '\r\n            '$outputWidth×$outputHeight but a decode size of '\r\n            '${image.width}×${image.height}, which uses an additional '\r\n            '${overheadInKilobytes}kb.\\n\\n'\r\n            'Consider resizing the asset ahead of time, supplying a cacheWidth '\r\n            'parameter of $outputWidth, a cacheHeight parameter of '\r\n            '$outputHeight, or using a ResizeImage.',\r\n          library: 'painting library',\r\n          context: ErrorDescription('while painting an image'),\r\n        ));\r\n        // Invert the colors of the canvas.\r\n        canvas.saveLayer(\r\n          destinationRect,\r\n          Paint()..colorFilter = const ColorFilter.matrix(<double>[\r\n            -1,  0,  0, 0, 255,\r\n             0, -1,  0, 0, 255,\r\n             0,  0, -1, 0, 255,\r\n             0,  0,  0, 1,   0,\r\n          ]),\r\n        );\r\n        // Flip the canvas vertically.\r\n        final double dy = -(rect.top + rect.height / 2.0);\r\n        canvas.translate(0.0, -dy);\r\n        canvas.scale(1.0, -1.0);\r\n        canvas.translate(0.0, dy);\r\n        invertedCanvas = true;\r\n      }\r\n      return true;\r\n    }()");
      if (!dart.test(decoration_image._lastFrameImageSizeInfo.contains(sizeInfo))) {
        let existingSizeInfo = decoration_image._pendingImageSizeInfo[$_get](sizeInfo.source);
        if (existingSizeInfo == null || dart.notNull(existingSizeInfo.displaySizeInBytes) < dart.notNull(sizeInfo.displaySizeInBytes)) {
          decoration_image._pendingImageSizeInfo[$_set](dart.nullCheck(sizeInfo.source), sizeInfo);
        }
        if (debug.debugOnPaintImage != null) {
          dart.nullCheck(debug.debugOnPaintImage)(sizeInfo);
        }
        dart.nullCheck(binding.SchedulerBinding.instance).addPostFrameCallback(dart.fn(timeStamp => {
          if (timeStamp == null) dart.nullFailed(I[0], 542, 65, "timeStamp");
          decoration_image._lastFrameImageSizeInfo = decoration_image._pendingImageSizeInfo[$values][$toSet]();
          if (dart.test(decoration_image._pendingImageSizeInfo[$isEmpty])) {
            return;
          }
          developer.postEvent("Flutter.ImageSizesForFrame", (() => {
            let t1 = new (T.IdentityMapOfString$Object()).new();
            for (let imageSizeInfo of decoration_image._pendingImageSizeInfo[$values])
              t1[$_set](dart.nullCheck(imageSizeInfo.source), imageSizeInfo.toJson());
            return t1;
          })());
          decoration_image._pendingImageSizeInfo = new (T.IdentityMapOfString$ImageSizeInfo()).new();
        }, T.DurationTovoid()));
      }
    }
    let needSave = centerSlice != null || repeat != decoration_image.ImageRepeat.noRepeat || dart.test(flipHorizontally);
    if (needSave) canvas.save();
    if (repeat != decoration_image.ImageRepeat.noRepeat) canvas.clipRect(rect);
    if (dart.test(flipHorizontally)) {
      let dx = -(dart.notNull(rect.left) + dart.notNull(rect.width) / 2.0);
      canvas.translate(-dx, 0.0);
      canvas.scale(-1.0, 1.0);
      canvas.translate(dx, 0.0);
    }
    if (centerSlice == null) {
      let sourceRect = alignment.inscribe(sourceSize, ui.Offset.zero['&'](inputSize));
      if (repeat == decoration_image.ImageRepeat.noRepeat) {
        canvas.drawImageRect(image, sourceRect, destinationRect, paint);
      } else {
        for (let tileRect of decoration_image._generateImageTileRects(rect, destinationRect, repeat))
          canvas.drawImageRect(image, sourceRect, tileRect, paint);
      }
    } else {
      canvas.scale(1 / dart.notNull(scale));
      if (repeat == decoration_image.ImageRepeat.noRepeat) {
        canvas.drawImageNine(image, decoration_image._scaleRect(centerSlice, scale), decoration_image._scaleRect(destinationRect, scale), paint);
      } else {
        for (let tileRect of decoration_image._generateImageTileRects(rect, destinationRect, repeat))
          canvas.drawImageNine(image, decoration_image._scaleRect(centerSlice, scale), decoration_image._scaleRect(tileRect, scale), paint);
      }
    }
    if (needSave) canvas.restore();
    if (invertedCanvas) {
      canvas.restore();
    }
  };
  decoration_image._generateImageTileRects = function _generateImageTileRects(outputRect, fundamentalRect, repeat) {
    if (outputRect == null) dart.nullFailed(I[0], 597, 45, "outputRect");
    if (fundamentalRect == null) dart.nullFailed(I[0], 597, 62, "fundamentalRect");
    if (repeat == null) dart.nullFailed(I[0], 597, 91, "repeat");
    return new (T.SyncIterableOfRect()).new(function* _generateImageTileRects() {
      let startX = 0;
      let startY = 0;
      let stopX = 0;
      let stopY = 0;
      let strideX = fundamentalRect.width;
      let strideY = fundamentalRect.height;
      if (repeat == decoration_image.ImageRepeat.repeat || repeat == decoration_image.ImageRepeat.repeatX) {
        startX = ((dart.notNull(outputRect.left) - dart.notNull(fundamentalRect.left)) / dart.notNull(strideX))[$floor]();
        stopX = ((dart.notNull(outputRect.right) - dart.notNull(fundamentalRect.right)) / dart.notNull(strideX))[$ceil]();
      }
      if (repeat == decoration_image.ImageRepeat.repeat || repeat == decoration_image.ImageRepeat.repeatY) {
        startY = ((dart.notNull(outputRect.top) - dart.notNull(fundamentalRect.top)) / dart.notNull(strideY))[$floor]();
        stopY = ((dart.notNull(outputRect.bottom) - dart.notNull(fundamentalRect.bottom)) / dart.notNull(strideY))[$ceil]();
      }
      for (let i = startX; i <= stopX; i = i + 1) {
        for (let j = startY; j <= stopY; j = j + 1)
          yield fundamentalRect.shift(new ui.Offset.new(i * dart.notNull(strideX), j * dart.notNull(strideY)));
      }
    });
  };
  decoration_image._scaleRect = function _scaleRect(rect, scale) {
    if (rect == null) dart.nullFailed(I[0], 621, 22, "rect");
    if (scale == null) dart.nullFailed(I[0], 621, 35, "scale");
    return new ui.Rect.fromLTRB(dart.notNull(rect.left) * dart.notNull(scale), dart.notNull(rect.top) * dart.notNull(scale), dart.notNull(rect.right) * dart.notNull(scale), dart.notNull(rect.bottom) * dart.notNull(scale));
  };
  dart.defineLazy(decoration_image, {
    /*decoration_image._pendingImageSizeInfo*/get _pendingImageSizeInfo() {
      return new (T.IdentityMapOfString$ImageSizeInfo()).new();
    },
    set _pendingImageSizeInfo(_) {},
    /*decoration_image._lastFrameImageSizeInfo*/get _lastFrameImageSizeInfo() {
      return T.LinkedHashSetOfImageSizeInfo().new();
    },
    set _lastFrameImageSizeInfo(_) {}
  }, false);
  dart.trackLibraries("packages/flutter/src/painting/decoration_image.dart", {
    "package:flutter/src/painting/decoration_image.dart": decoration_image
  }, {
  }, '{"version":3,"sourceRoot":"","sources":["decoration_image.dart"],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K,IAAD,wBAAU,KAAK;EAAC;;MAlS5G,sCAAqB;YAA0B;;;MAKvD,wCAAuB;YAAkB","file":"../../../../../../../../../../../packages/flutter/src/painting/decoration_image.dart.lib.js"}');
  // Exports:
  return {
    src__painting__decoration_image: decoration_image
  };
}));

//# sourceMappingURL=decoration_image.dart.lib.js.map
>>>>>>> Stashed changes