Commit 5702a529 authored by Luca Braun's avatar Luca Braun

Merge remote-tracking branch 'origin/feature/dashboard' into feature/dashboard

parents d16ca034 a51448e8
...@@ -35,6 +35,23 @@ def get_dockerfile_paths_and_names() -> Dict[str, str]: ...@@ -35,6 +35,23 @@ def get_dockerfile_paths_and_names() -> Dict[str, str]:
return command_args return command_args
def is_flutter_project(path: str) -> bool:
test_file_path = f"{path}/pubspec.yaml"
return os.path.exists(test_file_path)
class cd:
"""Context manager for changing the current working directory"""
def __init__(self, newPath):
self.newPath = os.path.expanduser(newPath)
def __enter__(self):
self.savedPath = os.getcwd()
os.chdir(self.newPath)
def __exit__(self, etype, value, traceback):
os.chdir(self.savedPath)
if __name__ == '__main__': if __name__ == '__main__':
p_image_name = None p_image_name = None
...@@ -60,6 +77,20 @@ if __name__ == '__main__': ...@@ -60,6 +77,20 @@ if __name__ == '__main__':
path = command_arg['path'] path = command_arg['path']
image_name = f"{DOCKERHUB_REPO_OWNER}/{command_arg['name']}" image_name = f"{DOCKERHUB_REPO_OWNER}/{command_arg['name']}"
if is_flutter_project(path):
with cd(path):
print(f"> flutter build web")
os.system(f"flutter build web")
print(f"> docker image build -t {image_name} {path}")
exit_val = os.system(f"docker image build -t {image_name} {path}")
if exit_val != 0:
error = exit_val
else:
print(f"> docker push {image_name}")
exit_val = os.system(f"docker push {image_name}")
else:
# copy Dockerfile into root dir to have access to modules folder # copy Dockerfile into root dir to have access to modules folder
shutil.copy2(os.path.join(path, DOCKER_BUILD_NAME), ROOT) shutil.copy2(os.path.join(path, DOCKER_BUILD_NAME), ROOT)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
define(['dart_sdk', 'packages/flutter/src/painting/box_border.dart', 'packages/flutter/src/painting/border_radius.dart', 'packages/flutter/src/painting/box_shadow.dart', 'packages/flutter/src/painting/gradient.dart', 'packages/flutter/src/foundation/collections.dart', 'packages/flutter/src/foundation/debug.dart', 'packages/flutter/src/painting/colors.dart', 'packages/flutter/src/painting/decoration_image.dart', 'packages/flutter/src/painting/decoration.dart', 'packages/flutter/src/painting/_network_image_web.dart'], (function load__packages__flutter__src__painting__box_decoration_dart(dart_sdk, packages__flutter__src__painting__box_border$46dart, packages__flutter__src__painting__border_radius$46dart, packages__flutter__src__painting__box_shadow$46dart, packages__flutter__src__painting__gradient$46dart, packages__flutter__src__foundation__collections$46dart, packages__flutter__src__foundation__debug$46dart, packages__flutter__src__painting__colors$46dart, packages__flutter__src__painting__decoration_image$46dart, packages__flutter__src__painting__decoration$46dart, packages__flutter__src__painting___network_image_web$46dart) {
'use strict';
const core = dart_sdk.core;
const ui = dart_sdk.ui;
const _internal = dart_sdk._internal;
const math = dart_sdk.math;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const box_border = packages__flutter__src__painting__box_border$46dart.src__painting__box_border;
const border_radius = packages__flutter__src__painting__border_radius$46dart.src__painting__border_radius;
const box_shadow = packages__flutter__src__painting__box_shadow$46dart.src__painting__box_shadow;
const gradient = packages__flutter__src__painting__gradient$46dart.src__painting__gradient;
const collections = packages__flutter__src__foundation__collections$46dart.src__foundation__collections;
const diagnostics = packages__flutter__src__foundation__debug$46dart.src__foundation__diagnostics;
const colors = packages__flutter__src__painting__colors$46dart.src__painting__colors;
const decoration_image = packages__flutter__src__painting__decoration_image$46dart.src__painting__decoration_image;
const decoration = packages__flutter__src__painting__decoration$46dart.src__painting__decoration;
const image_provider = packages__flutter__src__painting___network_image_web$46dart.src__painting__image_provider;
var box_decoration = Object.create(dart.library);
var $runtimeType = dartx.runtimeType;
dart._checkModuleNullSafetyMode(false);
var T = {
BoxDecorationN: () => (T.BoxDecorationN = dart.constFn(dart.nullable(box_decoration.BoxDecoration)))(),
DiagnosticsPropertyOfDecorationImage: () => (T.DiagnosticsPropertyOfDecorationImage = dart.constFn(diagnostics.DiagnosticsProperty$(decoration_image.DecorationImage)))(),
DiagnosticsPropertyOfBoxBorder: () => (T.DiagnosticsPropertyOfBoxBorder = dart.constFn(diagnostics.DiagnosticsProperty$(box_border.BoxBorder)))(),
DiagnosticsPropertyOfBorderRadiusGeometry: () => (T.DiagnosticsPropertyOfBorderRadiusGeometry = dart.constFn(diagnostics.DiagnosticsProperty$(border_radius.BorderRadiusGeometry)))(),
IterablePropertyOfBoxShadow: () => (T.IterablePropertyOfBoxShadow = dart.constFn(diagnostics.IterableProperty$(box_shadow.BoxShadow)))(),
DiagnosticsPropertyOfGradient: () => (T.DiagnosticsPropertyOfGradient = dart.constFn(diagnostics.DiagnosticsProperty$(gradient.Gradient)))(),
EnumPropertyOfBoxShape: () => (T.EnumPropertyOfBoxShape = dart.constFn(diagnostics.EnumProperty$(box_border.BoxShape)))(),
BorderRadiusN: () => (T.BorderRadiusN = dart.constFn(dart.nullable(border_radius.BorderRadius)))()
};
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({
__proto__: box_border.BoxShape.prototype,
[_name]: "BoxShape.rectangle",
index: 0
});
},
get C1() {
return C[1] = dart.const({
__proto__: box_border.BoxShape.prototype,
[_name]: "BoxShape.circle",
index: 1
});
}
}, false);
var C = Array(2).fill(void 0);
var I = [
"file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/painting/box_decoration.dart",
"package:flutter/src/painting/box_decoration.dart"
];
var color$ = dart.privateName(box_decoration, "BoxDecoration.color");
var image$ = dart.privateName(box_decoration, "BoxDecoration.image");
var border$ = dart.privateName(box_decoration, "BoxDecoration.border");
var borderRadius$ = dart.privateName(box_decoration, "BoxDecoration.borderRadius");
var boxShadow$ = dart.privateName(box_decoration, "BoxDecoration.boxShadow");
var gradient$ = dart.privateName(box_decoration, "BoxDecoration.gradient");
var backgroundBlendMode$ = dart.privateName(box_decoration, "BoxDecoration.backgroundBlendMode");
var shape$ = dart.privateName(box_decoration, "BoxDecoration.shape");
var _name = dart.privateName(box_border, "_name");
box_decoration.BoxDecoration = class BoxDecoration extends decoration.Decoration {
get color() {
return this[color$];
}
set color(value) {
super.color = value;
}
get image() {
return this[image$];
}
set image(value) {
super.image = value;
}
get border() {
return this[border$];
}
set border(value) {
super.border = value;
}
get borderRadius() {
return this[borderRadius$];
}
set borderRadius(value) {
super.borderRadius = value;
}
get boxShadow() {
return this[boxShadow$];
}
set boxShadow(value) {
super.boxShadow = value;
}
get gradient() {
return this[gradient$];
}
set gradient(value) {
super.gradient = value;
}
get backgroundBlendMode() {
return this[backgroundBlendMode$];
}
set backgroundBlendMode(value) {
super.backgroundBlendMode = value;
}
get shape() {
return this[shape$];
}
set shape(value) {
super.shape = value;
}
copyWith(opts) {
let t0, t0$, t0$0, t0$1, t0$2, t0$3, t0$4, t0$5;
let color = opts && 'color' in opts ? opts.color : null;
let image = opts && 'image' in opts ? opts.image : null;
let border = opts && 'border' in opts ? opts.border : null;
let borderRadius = opts && 'borderRadius' in opts ? opts.borderRadius : null;
let boxShadow = opts && 'boxShadow' in opts ? opts.boxShadow : null;
let gradient = opts && 'gradient' in opts ? opts.gradient : null;
let backgroundBlendMode = opts && 'backgroundBlendMode' in opts ? opts.backgroundBlendMode : null;
let shape = opts && 'shape' in opts ? opts.shape : null;
return new box_decoration.BoxDecoration.new({color: (t0 = color, t0 == null ? this.color : t0), image: (t0$ = image, t0$ == null ? this.image : t0$), border: (t0$0 = border, t0$0 == null ? this.border : t0$0), borderRadius: (t0$1 = borderRadius, t0$1 == null ? this.borderRadius : t0$1), boxShadow: (t0$2 = boxShadow, t0$2 == null ? this.boxShadow : t0$2), gradient: (t0$3 = gradient, t0$3 == null ? this.gradient : t0$3), backgroundBlendMode: (t0$4 = backgroundBlendMode, t0$4 == null ? this.backgroundBlendMode : t0$4), shape: (t0$5 = shape, t0$5 == null ? this.shape : t0$5)});
}
debugAssertIsValid() {
if (!(this.shape != box_border.BoxShape.circle || this.borderRadius == null)) dart.assertFailed(null, I[0], 131, 12, "shape != BoxShape.circle ||\r\n borderRadius == null");
return super.debugAssertIsValid();
}
get padding() {
let t0;
t0 = this.border;
return t0 == null ? null : t0.dimensions;
}
getClipPath(rect, textDirection) {
let t0, t0$, t0$0;
if (rect == null) dart.nullFailed(I[0], 218, 25, "rect");
if (textDirection == null) dart.nullFailed(I[0], 218, 45, "textDirection");
switch (this.shape) {
case C[1] || CT.C1:
{
let center = rect.center;
let radius = dart.notNull(rect.shortestSide) / 2.0;
let square = new ui.Rect.fromCircle({center: center, radius: radius});
t0 = ui.Path.new();
return (() => {
t0.addOval(square);
return t0;
})();
}
case C[0] || CT.C0:
{
if (this.borderRadius != null) {
t0$ = ui.Path.new();
return (() => {
t0$.addRRect(dart.nullCheck(this.borderRadius).resolve(textDirection).toRRect(rect));
return t0$;
})();
}
t0$0 = ui.Path.new();
return (() => {
t0$0.addRect(rect);
return t0$0;
})();
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
scale(factor) {
let t0;
if (factor == null) dart.nullFailed(I[0], 233, 30, "factor");
return new box_decoration.BoxDecoration.new({color: ui.Color.lerp(null, this.color, factor), image: this.image, border: box_border.BoxBorder.lerp(null, this.border, factor), borderRadius: border_radius.BorderRadiusGeometry.lerp(null, this.borderRadius, factor), boxShadow: box_shadow.BoxShadow.lerpList(null, this.boxShadow, factor), gradient: (t0 = this.gradient, t0 == null ? null : t0.scale(factor)), shape: this.shape});
}
get isComplex() {
return this.boxShadow != null;
}
lerpFrom(a, t) {
if (t == null) dart.nullFailed(I[0], 249, 49, "t");
if (a == null) return this.scale(t);
if (box_decoration.BoxDecoration.is(a)) return box_decoration.BoxDecoration.lerp(a, this, t);
return T.BoxDecorationN().as(super.lerpFrom(a, t));
}
lerpTo(b, t) {
if (t == null) dart.nullFailed(I[0], 258, 47, "t");
if (b == null) return this.scale(1.0 - dart.notNull(t));
if (box_decoration.BoxDecoration.is(b)) return box_decoration.BoxDecoration.lerp(this, b, t);
return T.BoxDecorationN().as(super.lerpTo(b, t));
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 289, 73, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 290, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b).scale(t);
if (b == null) return a.scale(1.0 - dart.notNull(t));
if (t === 0.0) return a;
if (t === 1.0) return b;
return new box_decoration.BoxDecoration.new({color: ui.Color.lerp(a.color, b.color, t), image: dart.notNull(t) < 0.5 ? a.image : b.image, border: box_border.BoxBorder.lerp(a.border, b.border, t), borderRadius: border_radius.BorderRadiusGeometry.lerp(a.borderRadius, b.borderRadius, t), boxShadow: box_shadow.BoxShadow.lerpList(a.boxShadow, b.boxShadow, t), gradient: gradient.Gradient.lerp(a.gradient, b.gradient, t), shape: dart.notNull(t) < 0.5 ? a.shape : b.shape});
}
_equals(other) {
if (other == null) return false;
if (this === other) return true;
if (!dart.equals(dart.runtimeType(other), this[$runtimeType])) return false;
return box_decoration.BoxDecoration.is(other) && dart.equals(other.color, this.color) && dart.equals(other.image, this.image) && dart.equals(other.border, this.border) && dart.equals(other.borderRadius, this.borderRadius) && dart.test(collections.listEquals(box_shadow.BoxShadow, other.boxShadow, this.boxShadow)) && dart.equals(other.gradient, this.gradient) && other.shape == this.shape;
}
get hashCode() {
return ui.hashValues(this.color, this.image, this.border, this.borderRadius, ui.hashList(this.boxShadow), this.gradient, this.shape);
}
debugFillProperties(properties) {
let t0;
if (properties == null) dart.nullFailed(I[0], 342, 56, "properties");
super.debugFillProperties(properties);
t0 = properties;
(() => {
t0.defaultDiagnosticsTreeStyle = diagnostics.DiagnosticsTreeStyle.whitespace;
t0.emptyBodyDescription = "<no decorations specified>";
return t0;
})();
properties.add(new colors.ColorProperty.new("color", this.color, {defaultValue: null}));
properties.add(new (T.DiagnosticsPropertyOfDecorationImage()).new("image", this.image, {defaultValue: null}));
properties.add(new (T.DiagnosticsPropertyOfBoxBorder()).new("border", this.border, {defaultValue: null}));
properties.add(new (T.DiagnosticsPropertyOfBorderRadiusGeometry()).new("borderRadius", this.borderRadius, {defaultValue: null}));
properties.add(new (T.IterablePropertyOfBoxShadow()).new("boxShadow", this.boxShadow, {defaultValue: null, style: diagnostics.DiagnosticsTreeStyle.whitespace}));
properties.add(new (T.DiagnosticsPropertyOfGradient()).new("gradient", this.gradient, {defaultValue: null}));
properties.add(new (T.EnumPropertyOfBoxShape()).new("shape", this.shape, {defaultValue: box_border.BoxShape.rectangle}));
}
hitTest(size, position, opts) {
if (size == null) dart.nullFailed(I[0], 358, 21, "size");
if (position == null) dart.nullFailed(I[0], 358, 34, "position");
let textDirection = opts && 'textDirection' in opts ? opts.textDirection : null;
if (!(this.shape != null)) dart.assertFailed(null, I[0], 359, 12, "shape != null");
if (!dart.test(ui.Offset.zero['&'](size).contains(position))) dart.assertFailed(null, I[0], 360, 12, "(Offset.zero & size).contains(position)");
switch (this.shape) {
case C[0] || CT.C0:
{
if (this.borderRadius != null) {
let bounds = dart.nullCheck(this.borderRadius).resolve(textDirection).toRRect(ui.Offset.zero['&'](size));
return bounds.contains(position);
}
return true;
}
case C[1] || CT.C1:
{
let center = size.center(ui.Offset.zero);
let distance = position['-'](center).distance;
return dart.notNull(distance) <= math.min(core.double, size.width, size.height) / 2.0;
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
createBoxPainter(onChanged = null) {
if (!(onChanged != null || this.image == null)) dart.assertFailed(null, I[0], 378, 12, "onChanged != null || image == null");
return new box_decoration._BoxDecorationPainter.new(this, onChanged);
}
};
(box_decoration.BoxDecoration.new = function(opts) {
let color = opts && 'color' in opts ? opts.color : null;
let image = opts && 'image' in opts ? opts.image : null;
let border = opts && 'border' in opts ? opts.border : null;
let borderRadius = opts && 'borderRadius' in opts ? opts.borderRadius : null;
let boxShadow = opts && 'boxShadow' in opts ? opts.boxShadow : null;
let gradient = opts && 'gradient' in opts ? opts.gradient : null;
let backgroundBlendMode = opts && 'backgroundBlendMode' in opts ? opts.backgroundBlendMode : null;
let shape = opts && 'shape' in opts ? opts.shape : C[0] || CT.C0;
if (shape == null) dart.nullFailed(I[0], 97, 10, "shape");
this[color$] = color;
this[image$] = image;
this[border$] = border;
this[borderRadius$] = borderRadius;
this[boxShadow$] = boxShadow;
this[gradient$] = gradient;
this[backgroundBlendMode$] = backgroundBlendMode;
this[shape$] = shape;
if (!(shape != null)) dart.assertFailed(null, I[0], 98, 15, "shape != null");
if (!(backgroundBlendMode == null || color != null || gradient != null)) dart.assertFailed("backgroundBlendMode applies to BoxDecoration's background color or " + "gradient, but no color or gradient was provided.", I[0], 100, 10, "backgroundBlendMode == null || color != null || gradient != null");
box_decoration.BoxDecoration.__proto__.new.call(this);
;
}).prototype = box_decoration.BoxDecoration.prototype;
dart.addTypeTests(box_decoration.BoxDecoration);
dart.addTypeCaches(box_decoration.BoxDecoration);
dart.setMethodSignature(box_decoration.BoxDecoration, () => ({
__proto__: dart.getMethods(box_decoration.BoxDecoration.__proto__),
copyWith: dart.fnType(box_decoration.BoxDecoration, [], {backgroundBlendMode: dart.nullable(ui.BlendMode), border: dart.nullable(box_border.BoxBorder), borderRadius: dart.nullable(border_radius.BorderRadiusGeometry), boxShadow: dart.nullable(core.List$(box_shadow.BoxShadow)), color: dart.nullable(ui.Color), gradient: dart.nullable(gradient.Gradient), image: dart.nullable(decoration_image.DecorationImage), shape: dart.nullable(box_border.BoxShape)}, {}),
scale: dart.fnType(box_decoration.BoxDecoration, [core.double]),
lerpFrom: dart.fnType(dart.nullable(box_decoration.BoxDecoration), [dart.nullable(decoration.Decoration), core.double]),
lerpTo: dart.fnType(dart.nullable(box_decoration.BoxDecoration), [dart.nullable(decoration.Decoration), core.double]),
createBoxPainter: dart.fnType(box_decoration._BoxDecorationPainter, [], [dart.nullable(dart.fnType(dart.void, []))])
}));
dart.setLibraryUri(box_decoration.BoxDecoration, I[1]);
dart.setFieldSignature(box_decoration.BoxDecoration, () => ({
__proto__: dart.getFields(box_decoration.BoxDecoration.__proto__),
color: dart.finalFieldType(dart.nullable(ui.Color)),
image: dart.finalFieldType(dart.nullable(decoration_image.DecorationImage)),
border: dart.finalFieldType(dart.nullable(box_border.BoxBorder)),
borderRadius: dart.finalFieldType(dart.nullable(border_radius.BorderRadiusGeometry)),
boxShadow: dart.finalFieldType(dart.nullable(core.List$(box_shadow.BoxShadow))),
gradient: dart.finalFieldType(dart.nullable(gradient.Gradient)),
backgroundBlendMode: dart.finalFieldType(dart.nullable(ui.BlendMode)),
shape: dart.finalFieldType(box_border.BoxShape)
}));
dart.defineExtensionMethods(box_decoration.BoxDecoration, ['_equals']);
dart.defineExtensionAccessors(box_decoration.BoxDecoration, ['hashCode']);
var _cachedBackgroundPaint = dart.privateName(box_decoration, "_cachedBackgroundPaint");
var _rectForCachedBackgroundPaint = dart.privateName(box_decoration, "_rectForCachedBackgroundPaint");
var _imagePainter = dart.privateName(box_decoration, "_imagePainter");
var _decoration$ = dart.privateName(box_decoration, "_decoration");
var _getBackgroundPaint = dart.privateName(box_decoration, "_getBackgroundPaint");
var _paintBox = dart.privateName(box_decoration, "_paintBox");
var _paintShadows = dart.privateName(box_decoration, "_paintShadows");
var _paintBackgroundColor = dart.privateName(box_decoration, "_paintBackgroundColor");
var _paintBackgroundImage = dart.privateName(box_decoration, "_paintBackgroundImage");
box_decoration._BoxDecorationPainter = class _BoxDecorationPainter extends decoration.BoxPainter {
[_getBackgroundPaint](rect, textDirection) {
if (rect == null) dart.nullFailed(I[0], 393, 34, "rect");
if (!(rect != null)) dart.assertFailed(null, I[0], 394, 12, "rect != null");
if (!(this[_decoration$].gradient != null || this[_rectForCachedBackgroundPaint] == null)) dart.assertFailed(null, I[0], 395, 12, "_decoration.gradient != null || _rectForCachedBackgroundPaint == null");
if (this[_cachedBackgroundPaint] == null || this[_decoration$].gradient != null && !dart.equals(this[_rectForCachedBackgroundPaint], rect)) {
let paint = ui.Paint.new();
if (this[_decoration$].backgroundBlendMode != null) paint.blendMode = dart.nullCheck(this[_decoration$].backgroundBlendMode);
if (this[_decoration$].color != null) paint.color = dart.nullCheck(this[_decoration$].color);
if (this[_decoration$].gradient != null) {
paint.shader = dart.nullCheck(this[_decoration$].gradient).createShader(rect, {textDirection: textDirection});
this[_rectForCachedBackgroundPaint] = rect;
}
this[_cachedBackgroundPaint] = paint;
}
return dart.nullCheck(this[_cachedBackgroundPaint]);
}
[_paintBox](canvas, rect, paint, textDirection) {
if (canvas == null) dart.nullFailed(I[0], 414, 25, "canvas");
if (rect == null) dart.nullFailed(I[0], 414, 38, "rect");
if (paint == null) dart.nullFailed(I[0], 414, 50, "paint");
switch (this[_decoration$].shape) {
case C[1] || CT.C1:
{
if (!(this[_decoration$].borderRadius == null)) dart.assertFailed(null, I[0], 417, 16, "_decoration.borderRadius == null");
let center = rect.center;
let radius = dart.notNull(rect.shortestSide) / 2.0;
canvas.drawCircle(center, radius, paint);
break;
}
case C[0] || CT.C0:
{
if (this[_decoration$].borderRadius == null) {
canvas.drawRect(rect, paint);
} else {
canvas.drawRRect(dart.nullCheck(this[_decoration$].borderRadius).resolve(textDirection).toRRect(rect), paint);
}
break;
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
[_paintShadows](canvas, rect, textDirection) {
if (canvas == null) dart.nullFailed(I[0], 432, 29, "canvas");
if (rect == null) dart.nullFailed(I[0], 432, 42, "rect");
if (this[_decoration$].boxShadow == null) return;
for (let boxShadow of dart.nullCheck(this[_decoration$].boxShadow)) {
let paint = boxShadow.toPaint();
let bounds = rect.shift(boxShadow.offset).inflate(boxShadow.spreadRadius);
this[_paintBox](canvas, bounds, paint, textDirection);
}
}
[_paintBackgroundColor](canvas, rect, textDirection) {
if (canvas == null) dart.nullFailed(I[0], 442, 37, "canvas");
if (rect == null) dart.nullFailed(I[0], 442, 50, "rect");
if (this[_decoration$].color != null || this[_decoration$].gradient != null) this[_paintBox](canvas, rect, this[_getBackgroundPaint](rect, textDirection), textDirection);
}
[_paintBackgroundImage](canvas, rect, configuration) {
let t0, t0$;
if (canvas == null) dart.nullFailed(I[0], 448, 37, "canvas");
if (rect == null) dart.nullFailed(I[0], 448, 50, "rect");
if (configuration == null) dart.nullFailed(I[0], 448, 75, "configuration");
if (this[_decoration$].image == null) return;
this[_imagePainter] == null ? this[_imagePainter] = dart.nullCheck(this[_decoration$].image).createPainter(dart.nullCheck(this.onChanged)) : null;
let clipPath = null;
switch (this[_decoration$].shape) {
case C[1] || CT.C1:
{
if (!(this[_decoration$].borderRadius == null)) dart.assertFailed(null, I[0], 455, 16, "_decoration.borderRadius == null");
let center = rect.center;
let radius = dart.notNull(rect.shortestSide) / 2.0;
let square = new ui.Rect.fromCircle({center: center, radius: radius});
clipPath = (t0 = ui.Path.new(), (() => {
t0.addOval(square);
return t0;
})());
break;
}
case C[0] || CT.C0:
{
if (this[_decoration$].borderRadius != null) clipPath = (t0$ = ui.Path.new(), (() => {
t0$.addRRect(dart.nullCheck(this[_decoration$].borderRadius).resolve(configuration.textDirection).toRRect(rect));
return t0$;
})());
break;
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
dart.nullCheck(this[_imagePainter]).paint(canvas, rect, clipPath, configuration);
}
dispose() {
let t0;
t0 = this[_imagePainter];
t0 == null ? null : t0.dispose();
super.dispose();
}
paint(canvas, offset, configuration) {
let t0;
if (canvas == null) dart.nullFailed(I[0], 477, 21, "canvas");
if (offset == null) dart.nullFailed(I[0], 477, 36, "offset");
if (configuration == null) dart.nullFailed(I[0], 477, 63, "configuration");
if (!(configuration != null)) dart.assertFailed(null, I[0], 478, 12, "configuration != null");
if (!(configuration.size != null)) dart.assertFailed(null, I[0], 479, 12, "configuration.size != null");
let rect = offset['&'](dart.nullCheck(configuration.size));
let textDirection = configuration.textDirection;
this[_paintShadows](canvas, rect, textDirection);
this[_paintBackgroundColor](canvas, rect, textDirection);
this[_paintBackgroundImage](canvas, rect, configuration);
t0 = this[_decoration$].border;
t0 == null ? null : t0.paint(canvas, rect, {shape: this[_decoration$].shape, borderRadius: T.BorderRadiusN().as(this[_decoration$].borderRadius), textDirection: configuration.textDirection});
}
toString() {
return "BoxPainter for " + dart.str(this[_decoration$]);
}
};
(box_decoration._BoxDecorationPainter.new = function(_decoration, onChanged) {
if (_decoration == null) dart.nullFailed(I[0], 385, 30, "_decoration");
this[_cachedBackgroundPaint] = null;
this[_rectForCachedBackgroundPaint] = null;
this[_imagePainter] = null;
this[_decoration$] = _decoration;
if (!(_decoration != null)) dart.assertFailed(null, I[0], 386, 14, "_decoration != null");
box_decoration._BoxDecorationPainter.__proto__.new.call(this, onChanged);
;
}).prototype = box_decoration._BoxDecorationPainter.prototype;
dart.addTypeTests(box_decoration._BoxDecorationPainter);
dart.addTypeCaches(box_decoration._BoxDecorationPainter);
dart.setMethodSignature(box_decoration._BoxDecorationPainter, () => ({
__proto__: dart.getMethods(box_decoration._BoxDecorationPainter.__proto__),
[_getBackgroundPaint]: dart.fnType(ui.Paint, [ui.Rect, dart.nullable(ui.TextDirection)]),
[_paintBox]: dart.fnType(dart.void, [ui.Canvas, ui.Rect, ui.Paint, dart.nullable(ui.TextDirection)]),
[_paintShadows]: dart.fnType(dart.void, [ui.Canvas, ui.Rect, dart.nullable(ui.TextDirection)]),
[_paintBackgroundColor]: dart.fnType(dart.void, [ui.Canvas, ui.Rect, dart.nullable(ui.TextDirection)]),
[_paintBackgroundImage]: dart.fnType(dart.void, [ui.Canvas, ui.Rect, image_provider.ImageConfiguration]),
paint: dart.fnType(dart.void, [ui.Canvas, ui.Offset, image_provider.ImageConfiguration])
}));
dart.setLibraryUri(box_decoration._BoxDecorationPainter, I[1]);
dart.setFieldSignature(box_decoration._BoxDecorationPainter, () => ({
__proto__: dart.getFields(box_decoration._BoxDecorationPainter.__proto__),
[_decoration$]: dart.finalFieldType(box_decoration.BoxDecoration),
[_cachedBackgroundPaint]: dart.fieldType(dart.nullable(ui.Paint)),
[_rectForCachedBackgroundPaint]: dart.fieldType(dart.nullable(ui.Rect)),
[_imagePainter]: dart.fieldType(dart.nullable(decoration_image.DecorationImagePainter))
}));
dart.defineExtensionMethods(box_decoration._BoxDecorationPainter, ['toString']);
dart.trackLibraries("packages/flutter/src/painting/box_decoration.dart", {
"package:flutter/src/painting/box_decoration.dart": box_decoration
}, {
}, '{"version":3,"sourceRoot":"","sources":["box_decoration.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+Ie;;;;;;IAOU;;;;;;IAYN;;;;;;IAQW;;;;;;IAWL;;;;;;IAOP;;;;;;IAQC;;;;;;IAeF;;;;;;;;UAxGN;UACU;UACN;UACW;UACL;UACP;UACC;UACD;AAEV,YAAO,+CACQ,KAAN,KAAK,EAAL,aAAc,0BACR,MAAN,KAAK,EAAL,cAAc,4BACN,OAAP,MAAM,EAAN,eAAe,oCACI,OAAb,YAAY,EAAZ,eAAqB,uCACd,OAAV,SAAS,EAAT,eAAkB,mCACV,OAAT,QAAQ,EAAR,eAAiB,6CACc,OAApB,mBAAmB,EAAnB,eAA4B,0CACpC,OAAN,KAAK,EAAL,eAAc;IAEzB;;AAIE,YAAO,AAAM,AAAmB,cAAP,8BACnB,AAAa;AACnB,YAAa;IACf;;;AAiFmC;iCAAQ;IAAU;gBAG/B,MAAoB;;UAApB;UAAoB;AACxC,cAAQ;;;AAES,uBAAS,AAAK,IAAD;AACb,uBAA2B,aAAlB,AAAK,IAAD,iBAAgB;AAC/B,uBAAc,gCAAmB,MAAM,UAAU,MAAM;AAClE,eAAO;;AAAQ,uBAAQ,MAAM;;;;;;AAE7B,cAAI,AAAa,2BACf;kBAAO;;AAAQ,2BAAqB,AAAE,AAAuB,eAArC,2BAAsB,aAAa,UAAU,IAAI;;;;AAC3E,iBAAO;;AAAQ,yBAAQ,IAAI;;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;;;AACzG;;;;AAXJ;;;AAa2D,MAA9C,AAAE,eAAf,2BAAqB,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa;IAC5D;;;AAI0B,WAAxB;0BAAe;AACA,MAAT;IACR;UAIkB,QAAe,QAA2B;;UAA1C;UAAe;UAA2B;AAC1D,YAAO,AAAc,aAAD;AACpB,YAAO,AAAc,AAAK,aAAN;AACT,iBAAO,AAAO,MAAD,MAAqB,eAAlB,AAAc,aAAD;AACnB,0BAAgB,AAAc,aAAD;AACR,MAA1C,oBAAc,MAAM,EAAE,IAAI,EAAE,aAAa;AACS,MAAlD,4BAAsB,MAAM,EAAE,IAAI,EAAE,aAAa;AACC,MAAlD,4BAAsB,MAAM,EAAE,IAAI,EAAE,aAAa;AAOhD,WAND,AAAY;mBAAA,OAAQ,SAClB,MAAM,EACN,IAAI,UACG,AAAY,wCACoB,qBAAzB,AAAY,iDACX,AAAc,aAAD;IAEhC;;AAIE,YAAO,AAA6B,8BAAZ;IAC1B;;uDAhH2B,aAA2B;QAA3B;IAMpB;IACD;IAuDkB;IA9DG;UAChB,AAAY,WAAD;AAClB,kEAAM,SAAS;;EAAC","file":"../../../../../../../../../../../packages/flutter/src/painting/box_decoration.dart.lib.js"}');
// Exports:
return {
src__painting__box_decoration: box_decoration
};
}));
//# sourceMappingURL=box_decoration.dart.lib.js.map
define(['dart_sdk', 'packages/vector_math/vector_math_64.dart', 'packages/flutter/src/painting/alignment.dart', 'packages/flutter/src/foundation/collections.dart', 'packages/flutter/src/foundation/object.dart'], (function load__packages__flutter__src__painting__gradient_dart(dart_sdk, packages__vector_math__vector_math_64$46dart, packages__flutter__src__painting__alignment$46dart, packages__flutter__src__foundation__collections$46dart, packages__flutter__src__foundation__object$46dart) {
'use strict';
const core = dart_sdk.core;
const ui = dart_sdk.ui;
const math = dart_sdk.math;
const typed_data = dart_sdk.typed_data;
const collection = dart_sdk.collection;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const vector_math_64 = packages__vector_math__vector_math_64$46dart.vector_math_64;
const alignment = packages__flutter__src__painting__alignment$46dart.src__painting__alignment;
const collections = packages__flutter__src__foundation__collections$46dart.src__foundation__collections;
const object = packages__flutter__src__foundation__object$46dart.src__foundation__object;
var gradient = Object.create(dart.library);
var $length = dartx.length;
var $map = dartx.map;
var $toList = dartx.toList;
var $runtimeType = dartx.runtimeType;
var $isNotEmpty = dartx.isNotEmpty;
var $first = dartx.first;
var $last = dartx.last;
var $lastIndexWhere = dartx.lastIndexWhere;
var $_get = dartx._get;
dart._checkModuleNullSafetyMode(false);
var T = {
ListOfdouble: () => (T.ListOfdouble = dart.constFn(core.List$(core.double)))(),
intTodouble: () => (T.intTodouble = dart.constFn(dart.fnType(core.double, [core.int])))(),
ColorToColor: () => (T.ColorToColor = dart.constFn(dart.fnType(ui.Color, [ui.Color])))(),
LinearGradientN: () => (T.LinearGradientN = dart.constFn(dart.nullable(gradient.LinearGradient)))(),
RadialGradientN: () => (T.RadialGradientN = dart.constFn(dart.nullable(gradient.RadialGradient)))(),
SweepGradientN: () => (T.SweepGradientN = dart.constFn(dart.nullable(gradient.SweepGradient)))(),
doubleTobool: () => (T.doubleTobool = dart.constFn(dart.fnType(core.bool, [core.double])))(),
SplayTreeSetOfdouble: () => (T.SplayTreeSetOfdouble = dart.constFn(collection.SplayTreeSet$(core.double)))(),
doubleToColor: () => (T.doubleToColor = dart.constFn(dart.fnType(ui.Color, [core.double])))()
};
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({
__proto__: alignment.Alignment.prototype,
[Alignment_y]: 0,
[Alignment_x]: -1
});
},
get C1() {
return C[1] = dart.const({
__proto__: alignment.Alignment.prototype,
[Alignment_y]: 0,
[Alignment_x]: 1
});
},
get C2() {
return C[2] = dart.const({
__proto__: ui.TileMode.prototype,
[_name]: "TileMode.clamp",
index: 0
});
},
get C3() {
return C[3] = dart.const({
__proto__: alignment.Alignment.prototype,
[Alignment_y]: 0,
[Alignment_x]: 0
});
}
}, false);
var C = Array(4).fill(void 0);
var I = [
"file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/painting/gradient.dart",
"package:flutter/src/painting/gradient.dart"
];
gradient._ColorsAndStops = class _ColorsAndStops extends core.Object {};
(gradient._ColorsAndStops.new = function(colors, stops) {
if (colors == null) dart.nullFailed(I[0], 18, 24, "colors");
if (stops == null) dart.nullFailed(I[0], 18, 37, "stops");
this.colors = colors;
this.stops = stops;
;
}).prototype = gradient._ColorsAndStops.prototype;
dart.addTypeTests(gradient._ColorsAndStops);
dart.addTypeCaches(gradient._ColorsAndStops);
dart.setLibraryUri(gradient._ColorsAndStops, I[1]);
dart.setFieldSignature(gradient._ColorsAndStops, () => ({
__proto__: dart.getFields(gradient._ColorsAndStops.__proto__),
colors: dart.finalFieldType(core.List$(ui.Color)),
stops: dart.finalFieldType(core.List$(core.double))
}));
gradient.GradientTransform = class GradientTransform extends core.Object {};
(gradient.GradientTransform.new = function() {
;
}).prototype = gradient.GradientTransform.prototype;
dart.addTypeTests(gradient.GradientTransform);
dart.addTypeCaches(gradient.GradientTransform);
dart.setLibraryUri(gradient.GradientTransform, I[1]);
var radians$ = dart.privateName(gradient, "GradientRotation.radians");
gradient.GradientRotation = class GradientRotation extends gradient.GradientTransform {
get radians() {
return this[radians$];
}
set radians(value) {
super.radians = value;
}
transform(bounds, opts) {
let t0;
if (bounds == null) dart.nullFailed(I[0], 108, 26, "bounds");
let textDirection = opts && 'textDirection' in opts ? opts.textDirection : null;
if (!(bounds != null)) dart.assertFailed(null, I[0], 109, 12, "bounds != null");
let sinRadians = math.sin(this.radians);
let oneMinusCosRadians = 1 - math.cos(this.radians);
let center = bounds.center;
let originX = sinRadians * dart.notNull(center.dy) + oneMinusCosRadians * dart.notNull(center.dx);
let originY = -sinRadians * dart.notNull(center.dx) + oneMinusCosRadians * dart.notNull(center.dy);
t0 = vector_math_64.Matrix4.identity();
return (() => {
t0.translate(originX, originY);
t0.rotateZ(this.radians);
return t0;
})();
}
};
(gradient.GradientRotation.new = function(radians) {
if (radians == null) dart.nullFailed(I[0], 102, 31, "radians");
this[radians$] = radians;
gradient.GradientRotation.__proto__.new.call(this);
;
}).prototype = gradient.GradientRotation.prototype;
dart.addTypeTests(gradient.GradientRotation);
dart.addTypeCaches(gradient.GradientRotation);
dart.setMethodSignature(gradient.GradientRotation, () => ({
__proto__: dart.getMethods(gradient.GradientRotation.__proto__),
transform: dart.fnType(vector_math_64.Matrix4, [ui.Rect], {textDirection: dart.nullable(ui.TextDirection)}, {})
}));
dart.setLibraryUri(gradient.GradientRotation, I[1]);
dart.setFieldSignature(gradient.GradientRotation, () => ({
__proto__: dart.getFields(gradient.GradientRotation.__proto__),
radians: dart.finalFieldType(core.double)
}));
var colors$ = dart.privateName(gradient, "Gradient.colors");
var stops$ = dart.privateName(gradient, "Gradient.stops");
var transform$ = dart.privateName(gradient, "Gradient.transform");
var _impliedStops = dart.privateName(gradient, "_impliedStops");
var _resolveTransform = dart.privateName(gradient, "_resolveTransform");
gradient.Gradient = class Gradient extends core.Object {
get colors() {
return this[colors$];
}
set colors(value) {
super.colors = value;
}
get stops() {
return this[stops$];
}
set stops(value) {
super.stops = value;
}
get transform() {
return this[transform$];
}
set transform(value) {
super.transform = value;
}
[_impliedStops]() {
if (this.stops != null) return dart.nullCheck(this.stops);
if (!(dart.notNull(this.colors[$length]) >= 2)) dart.assertFailed("colors list must have at least two colors", I[0], 189, 12, "colors.length >= 2");
let separation = 1.0 / (dart.notNull(this.colors[$length]) - 1);
return T.ListOfdouble().generate(this.colors[$length], dart.fn(index => {
if (index == null) dart.nullFailed(I[0], 193, 12, "index");
return dart.notNull(index) * separation;
}, T.intTodouble()), {growable: false});
}
lerpFrom(a, t) {
if (t == null) dart.nullFailed(I[0], 244, 42, "t");
if (a == null) return this.scale(t);
return null;
}
lerpTo(b, t) {
if (t == null) dart.nullFailed(I[0], 275, 40, "t");
if (b == null) return this.scale(1.0 - dart.notNull(t));
return null;
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 289, 58, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 290, 12, "t != null");
let result = null;
if (b != null) result = b.lerpFrom(a, t);
if (result == null && a != null) result = a.lerpTo(b, t);
if (result != null) return result;
if (a == null && b == null) return null;
if (!(a != null && b != null)) dart.assertFailed(null, I[0], 300, 12, "a != null && b != null");
return dart.notNull(t) < 0.5 ? dart.nullCheck(a).scale(1.0 - dart.notNull(t) * 2.0) : dart.nullCheck(b).scale((dart.notNull(t) - 0.5) * 2.0);
}
[_resolveTransform](bounds, textDirection) {
let t1, t0;
if (bounds == null) dart.nullFailed(I[0], 304, 39, "bounds");
t0 = this.transform;
return t0 == null ? null : (t1 = t0.transform(bounds, {textDirection: textDirection}), t1 == null ? null : t1.storage);
}
};
(gradient.Gradient.new = function(opts) {
let colors = opts && 'colors' in opts ? opts.colors : null;
if (colors == null) dart.nullFailed(I[0], 149, 19, "colors");
let stops = opts && 'stops' in opts ? opts.stops : null;
let transform = opts && 'transform' in opts ? opts.transform : null;
this[colors$] = colors;
this[stops$] = stops;
this[transform$] = transform;
if (!(colors != null)) dart.assertFailed(null, I[0], 152, 15, "colors != null");
;
}).prototype = gradient.Gradient.prototype;
dart.addTypeTests(gradient.Gradient);
dart.addTypeCaches(gradient.Gradient);
dart.setMethodSignature(gradient.Gradient, () => ({
__proto__: dart.getMethods(gradient.Gradient.__proto__),
[_impliedStops]: dart.fnType(core.List$(core.double), []),
lerpFrom: dart.fnType(dart.nullable(gradient.Gradient), [dart.nullable(gradient.Gradient), core.double]),
lerpTo: dart.fnType(dart.nullable(gradient.Gradient), [dart.nullable(gradient.Gradient), core.double]),
[_resolveTransform]: dart.fnType(dart.nullable(typed_data.Float64List), [ui.Rect, dart.nullable(ui.TextDirection)])
}));
dart.setLibraryUri(gradient.Gradient, I[1]);
dart.setFieldSignature(gradient.Gradient, () => ({
__proto__: dart.getFields(gradient.Gradient.__proto__),
colors: dart.finalFieldType(core.List$(ui.Color)),
stops: dart.finalFieldType(dart.nullable(core.List$(core.double))),
transform: dart.finalFieldType(dart.nullable(gradient.GradientTransform))
}));
var begin$ = dart.privateName(gradient, "LinearGradient.begin");
var end$ = dart.privateName(gradient, "LinearGradient.end");
var tileMode$ = dart.privateName(gradient, "LinearGradient.tileMode");
var Alignment_y = dart.privateName(alignment, "Alignment.y");
var Alignment_x = dart.privateName(alignment, "Alignment.x");
var _name = dart.privateName(ui, "_name");
gradient.LinearGradient = class LinearGradient extends gradient.Gradient {
get begin() {
return this[begin$];
}
set begin(value) {
super.begin = value;
}
get end() {
return this[end$];
}
set end(value) {
super.end = value;
}
get tileMode() {
return this[tileMode$];
}
set tileMode(value) {
super.tileMode = value;
}
createShader(rect, opts) {
if (rect == null) dart.nullFailed(I[0], 419, 28, "rect");
let textDirection = opts && 'textDirection' in opts ? opts.textDirection : null;
return ui.Gradient.linear(this.begin.resolve(textDirection).withinRect(rect), this.end.resolve(textDirection).withinRect(rect), this.colors, this[_impliedStops](), this.tileMode, this[_resolveTransform](rect, textDirection));
}
scale(factor) {
if (factor == null) dart.nullFailed(I[0], 432, 31, "factor");
return new gradient.LinearGradient.new({begin: this.begin, end: this.end, colors: this.colors[$map](ui.Color, dart.fn(color => {
if (color == null) dart.nullFailed(I[0], 436, 40, "color");
return dart.nullCheck(ui.Color.lerp(null, color, factor));
}, T.ColorToColor()))[$toList](), stops: this.stops, tileMode: this.tileMode});
}
lerpFrom(a, t) {
if (t == null) dart.nullFailed(I[0], 443, 42, "t");
if (a == null || gradient.LinearGradient.is(a)) return gradient.LinearGradient.lerp(T.LinearGradientN().as(a), this, t);
return super.lerpFrom(a, t);
}
lerpTo(b, t) {
if (t == null) dart.nullFailed(I[0], 450, 40, "t");
if (b == null || gradient.LinearGradient.is(b)) return gradient.LinearGradient.lerp(this, T.LinearGradientN().as(b), t);
return super.lerpTo(b, t);
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 475, 76, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 476, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b).scale(t);
if (b == null) return a.scale(1.0 - dart.notNull(t));
let interpolated = gradient._interpolateColorsAndStops(a.colors, a[_impliedStops](), b.colors, b[_impliedStops](), t);
return new gradient.LinearGradient.new({begin: dart.nullCheck(alignment.AlignmentGeometry.lerp(a.begin, b.begin, t)), end: dart.nullCheck(alignment.AlignmentGeometry.lerp(a.end, b.end, t)), colors: interpolated.colors, stops: interpolated.stops, tileMode: dart.notNull(t) < 0.5 ? a.tileMode : b.tileMode});
}
_equals(other) {
if (other == null) return false;
if (this === other) return true;
if (!dart.equals(dart.runtimeType(other), this[$runtimeType])) return false;
return gradient.LinearGradient.is(other) && dart.equals(other.begin, this.begin) && dart.equals(other.end, this.end) && other.tileMode == this.tileMode && dart.test(collections.listEquals(ui.Color, other.colors, this.colors)) && dart.test(collections.listEquals(core.double, other.stops, this.stops));
}
get hashCode() {
return ui.hashValues(this.begin, this.end, this.tileMode, ui.hashList(this.colors), ui.hashList(this.stops));
}
toString() {
return dart.str(object.objectRuntimeType(this, "LinearGradient")) + "(" + dart.str(this.begin) + ", " + dart.str(this.end) + ", " + dart.str(this.colors) + ", " + dart.str(this.stops) + ", " + dart.str(this.tileMode) + ")";
}
};
(gradient.LinearGradient.new = function(opts) {
let begin = opts && 'begin' in opts ? opts.begin : C[0] || CT.C0;
if (begin == null) dart.nullFailed(I[0], 367, 10, "begin");
let end = opts && 'end' in opts ? opts.end : C[1] || CT.C1;
if (end == null) dart.nullFailed(I[0], 368, 10, "end");
let colors = opts && 'colors' in opts ? opts.colors : null;
if (colors == null) dart.nullFailed(I[0], 369, 26, "colors");
let stops = opts && 'stops' in opts ? opts.stops : null;
let tileMode = opts && 'tileMode' in opts ? opts.tileMode : C[2] || CT.C2;
if (tileMode == null) dart.nullFailed(I[0], 371, 10, "tileMode");
let transform = opts && 'transform' in opts ? opts.transform : null;
this[begin$] = begin;
this[end$] = end;
this[tileMode$] = tileMode;
if (!(begin != null)) dart.assertFailed(null, I[0], 373, 15, "begin != null");
if (!(end != null)) dart.assertFailed(null, I[0], 374, 15, "end != null");
if (!(tileMode != null)) dart.assertFailed(null, I[0], 375, 15, "tileMode != null");
gradient.LinearGradient.__proto__.new.call(this, {colors: colors, stops: stops, transform: transform});
;
}).prototype = gradient.LinearGradient.prototype;
dart.addTypeTests(gradient.LinearGradient);
dart.addTypeCaches(gradient.LinearGradient);
dart.setMethodSignature(gradient.LinearGradient, () => ({
__proto__: dart.getMethods(gradient.LinearGradient.__proto__),
createShader: dart.fnType(ui.Shader, [ui.Rect], {textDirection: dart.nullable(ui.TextDirection)}, {}),
scale: dart.fnType(gradient.LinearGradient, [core.double])
}));
dart.setLibraryUri(gradient.LinearGradient, I[1]);
dart.setFieldSignature(gradient.LinearGradient, () => ({
__proto__: dart.getFields(gradient.LinearGradient.__proto__),
begin: dart.finalFieldType(alignment.AlignmentGeometry),
end: dart.finalFieldType(alignment.AlignmentGeometry),
tileMode: dart.finalFieldType(ui.TileMode)
}));
dart.defineExtensionMethods(gradient.LinearGradient, ['_equals', 'toString']);
dart.defineExtensionAccessors(gradient.LinearGradient, ['hashCode']);
var center$ = dart.privateName(gradient, "RadialGradient.center");
var radius$ = dart.privateName(gradient, "RadialGradient.radius");
var tileMode$0 = dart.privateName(gradient, "RadialGradient.tileMode");
var focal$ = dart.privateName(gradient, "RadialGradient.focal");
var focalRadius$ = dart.privateName(gradient, "RadialGradient.focalRadius");
gradient.RadialGradient = class RadialGradient extends gradient.Gradient {
get center() {
return this[center$];
}
set center(value) {
super.center = value;
}
get radius() {
return this[radius$];
}
set radius(value) {
super.radius = value;
}
get tileMode() {
return this[tileMode$0];
}
set tileMode(value) {
super.tileMode = value;
}
get focal() {
return this[focal$];
}
set focal(value) {
super.focal = value;
}
get focalRadius() {
return this[focalRadius$];
}
set focalRadius(value) {
super.focalRadius = value;
}
createShader(rect, opts) {
if (rect == null) dart.nullFailed(I[0], 672, 28, "rect");
let textDirection = opts && 'textDirection' in opts ? opts.textDirection : null;
return ui.Gradient.radial(this.center.resolve(textDirection).withinRect(rect), dart.notNull(this.radius) * dart.notNull(rect.shortestSide), this.colors, this[_impliedStops](), this.tileMode, this[_resolveTransform](rect, textDirection), this.focal == null ? null : dart.nullCheck(this.focal).resolve(textDirection).withinRect(rect), dart.notNull(this.focalRadius) * dart.notNull(rect.shortestSide));
}
scale(factor) {
if (factor == null) dart.nullFailed(I[0], 688, 31, "factor");
return new gradient.RadialGradient.new({center: this.center, radius: this.radius, colors: this.colors[$map](ui.Color, dart.fn(color => {
if (color == null) dart.nullFailed(I[0], 692, 40, "color");
return dart.nullCheck(ui.Color.lerp(null, color, factor));
}, T.ColorToColor()))[$toList](), stops: this.stops, tileMode: this.tileMode, focal: this.focal, focalRadius: this.focalRadius});
}
lerpFrom(a, t) {
if (t == null) dart.nullFailed(I[0], 701, 42, "t");
if (a == null || gradient.RadialGradient.is(a)) return gradient.RadialGradient.lerp(T.RadialGradientN().as(a), this, t);
return super.lerpFrom(a, t);
}
lerpTo(b, t) {
if (t == null) dart.nullFailed(I[0], 708, 40, "t");
if (b == null || gradient.RadialGradient.is(b)) return gradient.RadialGradient.lerp(this, T.RadialGradientN().as(b), t);
return super.lerpTo(b, t);
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 733, 76, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 734, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b).scale(t);
if (b == null) return a.scale(1.0 - dart.notNull(t));
let interpolated = gradient._interpolateColorsAndStops(a.colors, a[_impliedStops](), b.colors, b[_impliedStops](), t);
return new gradient.RadialGradient.new({center: dart.nullCheck(alignment.AlignmentGeometry.lerp(a.center, b.center, t)), radius: math.max(core.double, 0.0, dart.nullCheck(ui.lerpDouble(a.radius, b.radius, t))), colors: interpolated.colors, stops: interpolated.stops, tileMode: dart.notNull(t) < 0.5 ? a.tileMode : b.tileMode, focal: alignment.AlignmentGeometry.lerp(a.focal, b.focal, t), focalRadius: math.max(core.double, 0.0, dart.nullCheck(ui.lerpDouble(a.focalRadius, b.focalRadius, t)))});
}
_equals(other) {
if (other == null) return false;
if (this === other) return true;
if (!dart.equals(dart.runtimeType(other), this[$runtimeType])) return false;
return gradient.RadialGradient.is(other) && dart.equals(other.center, this.center) && other.radius == this.radius && other.tileMode == this.tileMode && dart.test(collections.listEquals(ui.Color, other.colors, this.colors)) && dart.test(collections.listEquals(core.double, other.stops, this.stops)) && dart.equals(other.focal, this.focal) && other.focalRadius == this.focalRadius;
}
get hashCode() {
return ui.hashValues(this.center, this.radius, this.tileMode, ui.hashList(this.colors), ui.hashList(this.stops), this.focal, this.focalRadius);
}
toString() {
return dart.str(object.objectRuntimeType(this, "RadialGradient")) + "(" + dart.str(this.center) + ", " + dart.str(this.radius) + ", " + dart.str(this.colors) + ", " + dart.str(this.stops) + ", " + dart.str(this.tileMode) + ", " + dart.str(this.focal) + ", " + dart.str(this.focalRadius) + ")";
}
};
(gradient.RadialGradient.new = function(opts) {
let center = opts && 'center' in opts ? opts.center : C[3] || CT.C3;
if (center == null) dart.nullFailed(I[0], 597, 10, "center");
let radius = opts && 'radius' in opts ? opts.radius : 0.5;
if (radius == null) dart.nullFailed(I[0], 598, 10, "radius");
let colors = opts && 'colors' in opts ? opts.colors : null;
if (colors == null) dart.nullFailed(I[0], 599, 26, "colors");
let stops = opts && 'stops' in opts ? opts.stops : null;
let tileMode = opts && 'tileMode' in opts ? opts.tileMode : C[2] || CT.C2;
if (tileMode == null) dart.nullFailed(I[0], 601, 10, "tileMode");
let focal = opts && 'focal' in opts ? opts.focal : null;
let focalRadius = opts && 'focalRadius' in opts ? opts.focalRadius : 0;
if (focalRadius == null) dart.nullFailed(I[0], 603, 10, "focalRadius");
let transform = opts && 'transform' in opts ? opts.transform : null;
this[center$] = center;
this[radius$] = radius;
this[tileMode$0] = tileMode;
this[focal$] = focal;
this[focalRadius$] = focalRadius;
if (!(center != null)) dart.assertFailed(null, I[0], 605, 15, "center != null");
if (!(radius != null)) dart.assertFailed(null, I[0], 606, 15, "radius != null");
if (!(tileMode != null)) dart.assertFailed(null, I[0], 607, 15, "tileMode != null");
if (!(focalRadius != null)) dart.assertFailed(null, I[0], 608, 15, "focalRadius != null");
gradient.RadialGradient.__proto__.new.call(this, {colors: colors, stops: stops, transform: transform});
;
}).prototype = gradient.RadialGradient.prototype;
dart.addTypeTests(gradient.RadialGradient);
dart.addTypeCaches(gradient.RadialGradient);
dart.setMethodSignature(gradient.RadialGradient, () => ({
__proto__: dart.getMethods(gradient.RadialGradient.__proto__),
createShader: dart.fnType(ui.Shader, [ui.Rect], {textDirection: dart.nullable(ui.TextDirection)}, {}),
scale: dart.fnType(gradient.RadialGradient, [core.double])
}));
dart.setLibraryUri(gradient.RadialGradient, I[1]);
dart.setFieldSignature(gradient.RadialGradient, () => ({
__proto__: dart.getFields(gradient.RadialGradient.__proto__),
center: dart.finalFieldType(alignment.AlignmentGeometry),
radius: dart.finalFieldType(core.double),
tileMode: dart.finalFieldType(ui.TileMode),
focal: dart.finalFieldType(dart.nullable(alignment.AlignmentGeometry)),
focalRadius: dart.finalFieldType(core.double)
}));
dart.defineExtensionMethods(gradient.RadialGradient, ['_equals', 'toString']);
dart.defineExtensionAccessors(gradient.RadialGradient, ['hashCode']);
var center$0 = dart.privateName(gradient, "SweepGradient.center");
var startAngle$ = dart.privateName(gradient, "SweepGradient.startAngle");
var endAngle$ = dart.privateName(gradient, "SweepGradient.endAngle");
var tileMode$1 = dart.privateName(gradient, "SweepGradient.tileMode");
gradient.SweepGradient = class SweepGradient extends gradient.Gradient {
get center() {
return this[center$0];
}
set center(value) {
super.center = value;
}
get startAngle() {
return this[startAngle$];
}
set startAngle(value) {
super.startAngle = value;
}
get endAngle() {
return this[endAngle$];
}
set endAngle(value) {
super.endAngle = value;
}
get tileMode() {
return this[tileMode$1];
}
set tileMode(value) {
super.tileMode = value;
}
createShader(rect, opts) {
if (rect == null) dart.nullFailed(I[0], 922, 28, "rect");
let textDirection = opts && 'textDirection' in opts ? opts.textDirection : null;
return ui.Gradient.sweep(this.center.resolve(textDirection).withinRect(rect), this.colors, this[_impliedStops](), this.tileMode, this.startAngle, this.endAngle, this[_resolveTransform](rect, textDirection));
}
scale(factor) {
if (factor == null) dart.nullFailed(I[0], 937, 30, "factor");
return new gradient.SweepGradient.new({center: this.center, startAngle: this.startAngle, endAngle: this.endAngle, colors: this.colors[$map](ui.Color, dart.fn(color => {
if (color == null) dart.nullFailed(I[0], 942, 40, "color");
return dart.nullCheck(ui.Color.lerp(null, color, factor));
}, T.ColorToColor()))[$toList](), stops: this.stops, tileMode: this.tileMode});
}
lerpFrom(a, t) {
if (t == null) dart.nullFailed(I[0], 949, 42, "t");
if (a == null || gradient.SweepGradient.is(a)) return gradient.SweepGradient.lerp(T.SweepGradientN().as(a), this, t);
return super.lerpFrom(a, t);
}
lerpTo(b, t) {
if (t == null) dart.nullFailed(I[0], 956, 40, "t");
if (b == null || gradient.SweepGradient.is(b)) return gradient.SweepGradient.lerp(this, T.SweepGradientN().as(b), t);
return super.lerpTo(b, t);
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 980, 73, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 981, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b).scale(t);
if (b == null) return a.scale(1.0 - dart.notNull(t));
let interpolated = gradient._interpolateColorsAndStops(a.colors, a[_impliedStops](), b.colors, b[_impliedStops](), t);
return new gradient.SweepGradient.new({center: dart.nullCheck(alignment.AlignmentGeometry.lerp(a.center, b.center, t)), startAngle: math.max(core.double, 0.0, dart.nullCheck(ui.lerpDouble(a.startAngle, b.startAngle, t))), endAngle: math.max(core.double, 0.0, dart.nullCheck(ui.lerpDouble(a.endAngle, b.endAngle, t))), colors: interpolated.colors, stops: interpolated.stops, tileMode: dart.notNull(t) < 0.5 ? a.tileMode : b.tileMode});
}
_equals(other) {
if (other == null) return false;
if (this === other) return true;
if (!dart.equals(dart.runtimeType(other), this[$runtimeType])) return false;
return gradient.SweepGradient.is(other) && dart.equals(other.center, this.center) && other.startAngle == this.startAngle && other.endAngle == this.endAngle && other.tileMode == this.tileMode && dart.test(collections.listEquals(ui.Color, other.colors, this.colors)) && dart.test(collections.listEquals(core.double, other.stops, this.stops));
}
get hashCode() {
return ui.hashValues(this.center, this.startAngle, this.endAngle, this.tileMode, ui.hashList(this.colors), ui.hashList(this.stops));
}
toString() {
return dart.str(object.objectRuntimeType(this, "SweepGradient")) + "(" + dart.str(this.center) + ", " + dart.str(this.startAngle) + ", " + dart.str(this.endAngle) + ", " + dart.str(this.colors) + ", " + dart.str(this.stops) + ", " + dart.str(this.tileMode) + ")";
}
};
(gradient.SweepGradient.new = function(opts) {
let center = opts && 'center' in opts ? opts.center : C[3] || CT.C3;
if (center == null) dart.nullFailed(I[0], 872, 10, "center");
let startAngle = opts && 'startAngle' in opts ? opts.startAngle : 0;
if (startAngle == null) dart.nullFailed(I[0], 873, 10, "startAngle");
let endAngle = opts && 'endAngle' in opts ? opts.endAngle : 6.283185307179586;
if (endAngle == null) dart.nullFailed(I[0], 874, 10, "endAngle");
let colors = opts && 'colors' in opts ? opts.colors : null;
if (colors == null) dart.nullFailed(I[0], 875, 26, "colors");
let stops = opts && 'stops' in opts ? opts.stops : null;
let tileMode = opts && 'tileMode' in opts ? opts.tileMode : C[2] || CT.C2;
if (tileMode == null) dart.nullFailed(I[0], 877, 10, "tileMode");
let transform = opts && 'transform' in opts ? opts.transform : null;
this[center$0] = center;
this[startAngle$] = startAngle;
this[endAngle$] = endAngle;
this[tileMode$1] = tileMode;
if (!(center != null)) dart.assertFailed(null, I[0], 879, 15, "center != null");
if (!(startAngle != null)) dart.assertFailed(null, I[0], 880, 15, "startAngle != null");
if (!(endAngle != null)) dart.assertFailed(null, I[0], 881, 15, "endAngle != null");
if (!(tileMode != null)) dart.assertFailed(null, I[0], 882, 15, "tileMode != null");
gradient.SweepGradient.__proto__.new.call(this, {colors: colors, stops: stops, transform: transform});
;
}).prototype = gradient.SweepGradient.prototype;
dart.addTypeTests(gradient.SweepGradient);
dart.addTypeCaches(gradient.SweepGradient);
dart.setMethodSignature(gradient.SweepGradient, () => ({
__proto__: dart.getMethods(gradient.SweepGradient.__proto__),
createShader: dart.fnType(ui.Shader, [ui.Rect], {textDirection: dart.nullable(ui.TextDirection)}, {}),
scale: dart.fnType(gradient.SweepGradient, [core.double])
}));
dart.setLibraryUri(gradient.SweepGradient, I[1]);
dart.setFieldSignature(gradient.SweepGradient, () => ({
__proto__: dart.getFields(gradient.SweepGradient.__proto__),
center: dart.finalFieldType(alignment.AlignmentGeometry),
startAngle: dart.finalFieldType(core.double),
endAngle: dart.finalFieldType(core.double),
tileMode: dart.finalFieldType(ui.TileMode)
}));
dart.defineExtensionMethods(gradient.SweepGradient, ['_equals', 'toString']);
dart.defineExtensionAccessors(gradient.SweepGradient, ['hashCode']);
gradient._sample = function _sample(colors, stops, t) {
if (colors == null) dart.nullFailed(I[0], 24, 27, "colors");
if (stops == null) dart.nullFailed(I[0], 24, 48, "stops");
if (t == null) dart.nullFailed(I[0], 24, 62, "t");
if (!(colors != null)) dart.assertFailed(null, I[0], 25, 10, "colors != null");
if (!dart.test(colors[$isNotEmpty])) dart.assertFailed(null, I[0], 26, 10, "colors.isNotEmpty");
if (!(stops != null)) dart.assertFailed(null, I[0], 27, 10, "stops != null");
if (!dart.test(stops[$isNotEmpty])) dart.assertFailed(null, I[0], 28, 10, "stops.isNotEmpty");
if (!(t != null)) dart.assertFailed(null, I[0], 29, 10, "t != null");
if (dart.notNull(t) <= dart.notNull(stops[$first])) return colors[$first];
if (dart.notNull(t) >= dart.notNull(stops[$last])) return colors[$last];
let index = stops[$lastIndexWhere](dart.fn(s => {
if (s == null) dart.nullFailed(I[0], 34, 50, "s");
return dart.notNull(s) <= dart.notNull(t);
}, T.doubleTobool()));
if (!(index !== -1)) dart.assertFailed(null, I[0], 35, 10, "index != -1");
return dart.nullCheck(ui.Color.lerp(colors[$_get](index), colors[$_get](dart.notNull(index) + 1), (dart.notNull(t) - dart.notNull(stops[$_get](index))) / (dart.notNull(stops[$_get](dart.notNull(index) + 1)) - dart.notNull(stops[$_get](index)))));
};
gradient._interpolateColorsAndStops = function _interpolateColorsAndStops(aColors, aStops, bColors, bStops, t) {
let t0;
if (aColors == null) dart.nullFailed(I[0], 43, 15, "aColors");
if (aStops == null) dart.nullFailed(I[0], 44, 16, "aStops");
if (bColors == null) dart.nullFailed(I[0], 45, 15, "bColors");
if (bStops == null) dart.nullFailed(I[0], 46, 16, "bStops");
if (t == null) dart.nullFailed(I[0], 47, 10, "t");
if (!(dart.notNull(aColors[$length]) >= 2)) dart.assertFailed(null, I[0], 49, 10, "aColors.length >= 2");
if (!(dart.notNull(bColors[$length]) >= 2)) dart.assertFailed(null, I[0], 50, 10, "bColors.length >= 2");
if (!(aStops[$length] == aColors[$length])) dart.assertFailed(null, I[0], 51, 10, "aStops.length == aColors.length");
if (!(bStops[$length] == bColors[$length])) dart.assertFailed(null, I[0], 52, 10, "bStops.length == bColors.length");
let stops = (t0 = new (T.SplayTreeSetOfdouble()).new(), (() => {
t0.addAll(aStops);
t0.addAll(bStops);
return t0;
})());
let interpolatedStops = stops.toList({growable: false});
let interpolatedColors = interpolatedStops[$map](ui.Color, dart.fn(stop => {
if (stop == null) dart.nullFailed(I[0], 58, 19, "stop");
return dart.nullCheck(ui.Color.lerp(gradient._sample(aColors, aStops, stop), gradient._sample(bColors, bStops, stop), t));
}, T.doubleToColor()))[$toList]({growable: false});
return new gradient._ColorsAndStops.new(interpolatedColors, interpolatedStops);
};
dart.trackLibraries("packages/flutter/src/painting/gradient.dart", {
"package:flutter/src/painting/gradient.dart": gradient
}, {
}, '{"version":3,"sourceRoot":"","sources":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K,KAAA,QAAO,aAAN,KAAK,IAAG,mBAAK,AAAK,KAAA,QAAC,KAAK;EAE1D;4EAGc,SACC,QACD,SACC,QACN;;QAJK;QACC;QACD;QACC;QACN;AAEP,UAAsB,aAAf,AAAQ,OAAD,cAAW;AACzB,UAAsB,aAAf,AAAQ,OAAD,cAAW;AACzB,UAAO,AAAO,AAAO,MAAR,aAAW,AAAQ,OAAD;AAC/B,UAAO,AAAO,AAAO,MAAR,aAAW,AAAQ,OAAD;AACJ,4DAAQ;AAC/B,gBAAO,MAAM;AACb,gBAAO,MAAM;;;AACE,4BAAoB,AAAM,KAAD,mBAAkB;AAC5C,6BAAqB,AAAkB,AAEvD,iBAFsD,iBAChD;UAAQ;AAAS,YAA6E,gBAAvE,cAAK,iBAAQ,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,iBAAQ,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC;+CAClF;AACnB,UAAO,kCAAgB,kBAAkB,EAAE,iBAAiB;EAC9D","file":"../../../../../../../../../../../packages/flutter/src/painting/gradient.dart.lib.js"}');
// Exports:
return {
src__painting__gradient: gradient
};
}));
//# sourceMappingURL=gradient.dart.lib.js.map
define(['dart_sdk', 'packages/flutter/src/painting/basic_types.dart'], (function load__packages__flutter__src__painting__edge_insets_dart(dart_sdk, packages__flutter__src__painting__basic_types$46dart) {
'use strict';
const core = dart_sdk.core;
const _internal = dart_sdk._internal;
const ui = dart_sdk.ui;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const basic_types = packages__flutter__src__painting__basic_types$46dart.src__painting__basic_types;
var edge_insets = Object.create(dart.library);
var $clamp = dartx.clamp;
var $toStringAsFixed = dartx.toStringAsFixed;
var $truncate = dartx.truncate;
var $toDouble = dartx.toDouble;
var $modulo = dartx['%'];
dart._checkModuleNullSafetyMode(false);
var T = {
_: () => T
};
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({
__proto__: basic_types.Axis.prototype,
[_name]: "Axis.horizontal",
index: 0
});
},
get C1() {
return C[1] = dart.const({
__proto__: basic_types.Axis.prototype,
[_name]: "Axis.vertical",
index: 1
});
},
get C2() {
return C[2] = dart.const({
__proto__: edge_insets._MixedEdgeInsets.prototype,
[_MixedEdgeInsets__bottom]: 1 / 0,
[_MixedEdgeInsets__top]: 1 / 0,
[_MixedEdgeInsets__end]: 1 / 0,
[_MixedEdgeInsets__start]: 1 / 0,
[_MixedEdgeInsets__right]: 1 / 0,
[_MixedEdgeInsets__left]: 1 / 0
});
},
get C3() {
return C[3] = dart.const({
__proto__: edge_insets.EdgeInsets.prototype,
[bottom$]: 0,
[right$]: 0,
[top$]: 0,
[left$]: 0
});
},
get C4() {
return C[4] = dart.const({
__proto__: ui.TextDirection.prototype,
[_name$]: "TextDirection.rtl",
index: 0
});
},
get C5() {
return C[5] = dart.const({
__proto__: ui.TextDirection.prototype,
[_name$]: "TextDirection.ltr",
index: 1
});
},
get C6() {
return C[6] = dart.const({
__proto__: edge_insets.EdgeInsetsDirectional.prototype,
[bottom$0]: 0,
[end$]: 0,
[top$0]: 0,
[start$]: 0
});
}
}, false);
var C = Array(7).fill(void 0);
var I = [
"file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/painting/edge_insets.dart",
"package:flutter/src/painting/edge_insets.dart"
];
var _left = dart.privateName(edge_insets, "_left");
var _right = dart.privateName(edge_insets, "_right");
var _start = dart.privateName(edge_insets, "_start");
var _end = dart.privateName(edge_insets, "_end");
var _top = dart.privateName(edge_insets, "_top");
var _bottom = dart.privateName(edge_insets, "_bottom");
var _name = dart.privateName(basic_types, "_name");
var _MixedEdgeInsets__bottom = dart.privateName(edge_insets, "_MixedEdgeInsets._bottom");
var _MixedEdgeInsets__top = dart.privateName(edge_insets, "_MixedEdgeInsets._top");
var _MixedEdgeInsets__end = dart.privateName(edge_insets, "_MixedEdgeInsets._end");
var _MixedEdgeInsets__start = dart.privateName(edge_insets, "_MixedEdgeInsets._start");
var _MixedEdgeInsets__right = dart.privateName(edge_insets, "_MixedEdgeInsets._right");
var _MixedEdgeInsets__left = dart.privateName(edge_insets, "_MixedEdgeInsets._left");
edge_insets.EdgeInsetsGeometry = class EdgeInsetsGeometry extends core.Object {
get isNonNegative() {
return dart.notNull(this[_left]) >= 0.0 && dart.notNull(this[_right]) >= 0.0 && dart.notNull(this[_start]) >= 0.0 && dart.notNull(this[_end]) >= 0.0 && dart.notNull(this[_top]) >= 0.0 && dart.notNull(this[_bottom]) >= 0.0;
}
get horizontal() {
return dart.notNull(this[_left]) + dart.notNull(this[_right]) + dart.notNull(this[_start]) + dart.notNull(this[_end]);
}
get vertical() {
return dart.notNull(this[_top]) + dart.notNull(this[_bottom]);
}
along(axis) {
if (axis == null) dart.nullFailed(I[0], 67, 21, "axis");
if (!(axis != null)) dart.assertFailed(null, I[0], 68, 12, "axis != null");
switch (axis) {
case C[0] || CT.C0:
{
return this.horizontal;
}
case C[1] || CT.C1:
{
return this.vertical;
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
get collapsedSize() {
return new ui.Size.new(this.horizontal, this.vertical);
}
get flipped() {
return new edge_insets._MixedEdgeInsets.fromLRSETB(this[_right], this[_left], this[_end], this[_start], this[_bottom], this[_top]);
}
inflateSize(size) {
if (size == null) dart.nullFailed(I[0], 92, 25, "size");
return new ui.Size.new(dart.notNull(size.width) + dart.notNull(this.horizontal), dart.notNull(size.height) + dart.notNull(this.vertical));
}
deflateSize(size) {
if (size == null) dart.nullFailed(I[0], 108, 25, "size");
return new ui.Size.new(dart.notNull(size.width) - dart.notNull(this.horizontal), dart.notNull(size.height) - dart.notNull(this.vertical));
}
subtract(other) {
if (other == null) dart.nullFailed(I[0], 128, 50, "other");
return new edge_insets._MixedEdgeInsets.fromLRSETB(dart.notNull(this[_left]) - dart.notNull(other[_left]), dart.notNull(this[_right]) - dart.notNull(other[_right]), dart.notNull(this[_start]) - dart.notNull(other[_start]), dart.notNull(this[_end]) - dart.notNull(other[_end]), dart.notNull(this[_top]) - dart.notNull(other[_top]), dart.notNull(this[_bottom]) - dart.notNull(other[_bottom]));
}
add(other) {
if (other == null) dart.nullFailed(I[0], 150, 45, "other");
return new edge_insets._MixedEdgeInsets.fromLRSETB(dart.notNull(this[_left]) + dart.notNull(other[_left]), dart.notNull(this[_right]) + dart.notNull(other[_right]), dart.notNull(this[_start]) + dart.notNull(other[_start]), dart.notNull(this[_end]) + dart.notNull(other[_end]), dart.notNull(this[_top]) + dart.notNull(other[_top]), dart.notNull(this[_bottom]) + dart.notNull(other[_bottom]));
}
clamp(min, max) {
if (min == null) dart.nullFailed(I[0], 163, 47, "min");
if (max == null) dart.nullFailed(I[0], 163, 71, "max");
return new edge_insets._MixedEdgeInsets.fromLRSETB(this[_left][$clamp](min[_left], max[_left]), this[_right][$clamp](min[_right], max[_right]), this[_start][$clamp](min[_start], max[_start]), this[_end][$clamp](min[_end], max[_end]), this[_top][$clamp](min[_top], max[_top]), this[_bottom][$clamp](min[_bottom], max[_bottom]));
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 219, 88, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 220, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b)['*'](t);
if (b == null) return a['*'](1.0 - dart.notNull(t));
if (edge_insets.EdgeInsets.is(a) && edge_insets.EdgeInsets.is(b)) return edge_insets.EdgeInsets.lerp(a, b, t);
if (edge_insets.EdgeInsetsDirectional.is(a) && edge_insets.EdgeInsetsDirectional.is(b)) return edge_insets.EdgeInsetsDirectional.lerp(a, b, t);
return new edge_insets._MixedEdgeInsets.fromLRSETB(dart.nullCheck(ui.lerpDouble(a[_left], b[_left], t)), dart.nullCheck(ui.lerpDouble(a[_right], b[_right], t)), dart.nullCheck(ui.lerpDouble(a[_start], b[_start], t)), dart.nullCheck(ui.lerpDouble(a[_end], b[_end], t)), dart.nullCheck(ui.lerpDouble(a[_top], b[_top], t)), dart.nullCheck(ui.lerpDouble(a[_bottom], b[_bottom], t)));
}
toString() {
if (this[_start] === 0.0 && this[_end] === 0.0) {
if (this[_left] === 0.0 && this[_right] === 0.0 && this[_top] === 0.0 && this[_bottom] === 0.0) return "EdgeInsets.zero";
if (this[_left] == this[_right] && this[_right] == this[_top] && this[_top] == this[_bottom]) return "EdgeInsets.all(" + this[_left][$toStringAsFixed](1) + ")";
return "EdgeInsets(" + this[_left][$toStringAsFixed](1) + ", " + this[_top][$toStringAsFixed](1) + ", " + this[_right][$toStringAsFixed](1) + ", " + this[_bottom][$toStringAsFixed](1) + ")";
}
if (this[_left] === 0.0 && this[_right] === 0.0) {
return "EdgeInsetsDirectional(" + this[_start][$toStringAsFixed](1) + ", " + this[_top][$toStringAsFixed](1) + ", " + this[_end][$toStringAsFixed](1) + ", " + this[_bottom][$toStringAsFixed](1) + ")";
}
return "EdgeInsets(" + this[_left][$toStringAsFixed](1) + ", " + this[_top][$toStringAsFixed](1) + ", " + this[_right][$toStringAsFixed](1) + ", " + this[_bottom][$toStringAsFixed](1) + ")" + " + " + "EdgeInsetsDirectional(" + this[_start][$toStringAsFixed](1) + ", " + "0.0, " + this[_end][$toStringAsFixed](1) + ", " + "0.0)";
}
_equals(other) {
if (other == null) return false;
return edge_insets.EdgeInsetsGeometry.is(other) && other[_left] == this[_left] && other[_right] == this[_right] && other[_start] == this[_start] && other[_end] == this[_end] && other[_top] == this[_top] && other[_bottom] == this[_bottom];
}
get hashCode() {
return ui.hashValues(this[_left], this[_right], this[_start], this[_end], this[_top], this[_bottom]);
}
};
(edge_insets.EdgeInsetsGeometry.new = function() {
;
}).prototype = edge_insets.EdgeInsetsGeometry.prototype;
dart.addTypeTests(edge_insets.EdgeInsetsGeometry);
dart.addTypeCaches(edge_insets.EdgeInsetsGeometry);
dart.setMethodSignature(edge_insets.EdgeInsetsGeometry, () => ({
__proto__: dart.getMethods(edge_insets.EdgeInsetsGeometry.__proto__),
along: dart.fnType(core.double, [basic_types.Axis]),
inflateSize: dart.fnType(ui.Size, [ui.Size]),
deflateSize: dart.fnType(ui.Size, [ui.Size]),
subtract: dart.fnType(edge_insets.EdgeInsetsGeometry, [edge_insets.EdgeInsetsGeometry]),
add: dart.fnType(edge_insets.EdgeInsetsGeometry, [edge_insets.EdgeInsetsGeometry]),
clamp: dart.fnType(edge_insets.EdgeInsetsGeometry, [edge_insets.EdgeInsetsGeometry, edge_insets.EdgeInsetsGeometry])
}));
dart.setGetterSignature(edge_insets.EdgeInsetsGeometry, () => ({
__proto__: dart.getGetters(edge_insets.EdgeInsetsGeometry.__proto__),
isNonNegative: core.bool,
horizontal: core.double,
vertical: core.double,
collapsedSize: ui.Size,
flipped: edge_insets.EdgeInsetsGeometry
}));
dart.setLibraryUri(edge_insets.EdgeInsetsGeometry, I[1]);
dart.defineExtensionMethods(edge_insets.EdgeInsetsGeometry, ['toString', '_equals']);
dart.defineExtensionAccessors(edge_insets.EdgeInsetsGeometry, ['hashCode']);
dart.defineLazy(edge_insets.EdgeInsetsGeometry, {
/*edge_insets.EdgeInsetsGeometry.infinity*/get infinity() {
return C[2] || CT.C2;
}
}, false);
var left$ = dart.privateName(edge_insets, "EdgeInsets.left");
var top$ = dart.privateName(edge_insets, "EdgeInsets.top");
var right$ = dart.privateName(edge_insets, "EdgeInsets.right");
var bottom$ = dart.privateName(edge_insets, "EdgeInsets.bottom");
edge_insets.EdgeInsets = class EdgeInsets extends edge_insets.EdgeInsetsGeometry {
get left() {
return this[left$];
}
set left(value) {
super.left = value;
}
get top() {
return this[top$];
}
set top(value) {
super.top = value;
}
get right() {
return this[right$];
}
set right(value) {
super.right = value;
}
get bottom() {
return this[bottom$];
}
set bottom(value) {
super.bottom = value;
}
get [_left]() {
return this.left;
}
get [_top]() {
return this.top;
}
get [_right]() {
return this.right;
}
get [_bottom]() {
return this.bottom;
}
get [_start]() {
return 0.0;
}
get [_end]() {
return 0.0;
}
get topLeft() {
return new ui.Offset.new(this.left, this.top);
}
get topRight() {
return new ui.Offset.new(-dart.notNull(this.right), this.top);
}
get bottomLeft() {
return new ui.Offset.new(this.left, -dart.notNull(this.bottom));
}
get bottomRight() {
return new ui.Offset.new(-dart.notNull(this.right), -dart.notNull(this.bottom));
}
get flipped() {
return new edge_insets.EdgeInsets.fromLTRB(this.right, this.bottom, this.left, this.top);
}
inflateRect(rect) {
if (rect == null) dart.nullFailed(I[0], 471, 25, "rect");
return new ui.Rect.fromLTRB(dart.notNull(rect.left) - dart.notNull(this.left), dart.notNull(rect.top) - dart.notNull(this.top), dart.notNull(rect.right) + dart.notNull(this.right), dart.notNull(rect.bottom) + dart.notNull(this.bottom));
}
deflateRect(rect) {
if (rect == null) dart.nullFailed(I[0], 488, 25, "rect");
return new ui.Rect.fromLTRB(dart.notNull(rect.left) + dart.notNull(this.left), dart.notNull(rect.top) + dart.notNull(this.top), dart.notNull(rect.right) - dart.notNull(this.right), dart.notNull(rect.bottom) - dart.notNull(this.bottom));
}
subtract(other) {
if (other == null) dart.nullFailed(I[0], 493, 50, "other");
if (edge_insets.EdgeInsets.is(other)) return this['-'](other);
return super.subtract(other);
}
add(other) {
if (other == null) dart.nullFailed(I[0], 500, 45, "other");
if (edge_insets.EdgeInsets.is(other)) return this['+'](other);
return super.add(other);
}
clamp(min, max) {
if (min == null) dart.nullFailed(I[0], 507, 47, "min");
if (max == null) dart.nullFailed(I[0], 507, 71, "max");
return new edge_insets.EdgeInsets.fromLTRB(this[_left][$clamp](min[_left], max[_left]), this[_top][$clamp](min[_top], max[_top]), this[_right][$clamp](min[_right], max[_right]), this[_bottom][$clamp](min[_bottom], max[_bottom]));
}
['-'](other) {
if (other == null) dart.nullFailed(I[0], 517, 36, "other");
return new edge_insets.EdgeInsets.fromLTRB(dart.notNull(this.left) - dart.notNull(other.left), dart.notNull(this.top) - dart.notNull(other.top), dart.notNull(this.right) - dart.notNull(other.right), dart.notNull(this.bottom) - dart.notNull(other.bottom));
}
['+'](other) {
if (other == null) dart.nullFailed(I[0], 527, 36, "other");
return new edge_insets.EdgeInsets.fromLTRB(dart.notNull(this.left) + dart.notNull(other.left), dart.notNull(this.top) + dart.notNull(other.top), dart.notNull(this.right) + dart.notNull(other.right), dart.notNull(this.bottom) + dart.notNull(other.bottom));
}
_negate() {
return new edge_insets.EdgeInsets.fromLTRB(-dart.notNull(this.left), -dart.notNull(this.top), -dart.notNull(this.right), -dart.notNull(this.bottom));
}
['*'](other) {
if (other == null) dart.nullFailed(I[0], 551, 32, "other");
return new edge_insets.EdgeInsets.fromLTRB(dart.notNull(this.left) * dart.notNull(other), dart.notNull(this.top) * dart.notNull(other), dart.notNull(this.right) * dart.notNull(other), dart.notNull(this.bottom) * dart.notNull(other));
}
['/'](other) {
if (other == null) dart.nullFailed(I[0], 562, 32, "other");
return new edge_insets.EdgeInsets.fromLTRB(dart.notNull(this.left) / dart.notNull(other), dart.notNull(this.top) / dart.notNull(other), dart.notNull(this.right) / dart.notNull(other), dart.notNull(this.bottom) / dart.notNull(other));
}
['~/'](other) {
if (other == null) dart.nullFailed(I[0], 573, 33, "other");
return new edge_insets.EdgeInsets.fromLTRB((dart.notNull(this.left) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.top) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.right) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.bottom) / dart.notNull(other))[$truncate]()[$toDouble]());
}
['%'](other) {
if (other == null) dart.nullFailed(I[0], 584, 32, "other");
return new edge_insets.EdgeInsets.fromLTRB(this.left[$modulo](other), this.top[$modulo](other), this.right[$modulo](other), this.bottom[$modulo](other));
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 598, 64, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 599, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b)['*'](t);
if (b == null) return a['*'](1.0 - dart.notNull(t));
return new edge_insets.EdgeInsets.fromLTRB(dart.nullCheck(ui.lerpDouble(a.left, b.left, t)), dart.nullCheck(ui.lerpDouble(a.top, b.top, t)), dart.nullCheck(ui.lerpDouble(a.right, b.right, t)), dart.nullCheck(ui.lerpDouble(a.bottom, b.bottom, t)));
}
resolve(direction) {
return this;
}
copyWith(opts) {
let t0, t0$, t0$0, t0$1;
let left = opts && 'left' in opts ? opts.left : null;
let top = opts && 'top' in opts ? opts.top : null;
let right = opts && 'right' in opts ? opts.right : null;
let bottom = opts && 'bottom' in opts ? opts.bottom : null;
return new edge_insets.EdgeInsets.only({left: (t0 = left, t0 == null ? this.left : t0), top: (t0$ = top, t0$ == null ? this.top : t0$), right: (t0$0 = right, t0$0 == null ? this.right : t0$0), bottom: (t0$1 = bottom, t0$1 == null ? this.bottom : t0$1)});
}
};
(edge_insets.EdgeInsets.fromLTRB = function(left, top, right, bottom) {
if (left == null) dart.nullFailed(I[0], 343, 34, "left");
if (top == null) dart.nullFailed(I[0], 343, 45, "top");
if (right == null) dart.nullFailed(I[0], 343, 55, "right");
if (bottom == null) dart.nullFailed(I[0], 343, 67, "bottom");
this[left$] = left;
this[top$] = top;
this[right$] = right;
this[bottom$] = bottom;
edge_insets.EdgeInsets.__proto__.new.call(this);
;
}).prototype = edge_insets.EdgeInsets.prototype;
(edge_insets.EdgeInsets.all = function(value) {
if (value == null) dart.nullFailed(I[0], 355, 31, "value");
this[left$] = value;
this[top$] = value;
this[right$] = value;
this[bottom$] = value;
edge_insets.EdgeInsets.__proto__.new.call(this);
;
}).prototype = edge_insets.EdgeInsets.prototype;
(edge_insets.EdgeInsets.only = function(opts) {
let left = opts && 'left' in opts ? opts.left : 0;
if (left == null) dart.nullFailed(I[0], 372, 10, "left");
let top = opts && 'top' in opts ? opts.top : 0;
if (top == null) dart.nullFailed(I[0], 373, 10, "top");
let right = opts && 'right' in opts ? opts.right : 0;
if (right == null) dart.nullFailed(I[0], 374, 10, "right");
let bottom = opts && 'bottom' in opts ? opts.bottom : 0;
if (bottom == null) dart.nullFailed(I[0], 375, 10, "bottom");
this[left$] = left;
this[top$] = top;
this[right$] = right;
this[bottom$] = bottom;
edge_insets.EdgeInsets.__proto__.new.call(this);
;
}).prototype = edge_insets.EdgeInsets.prototype;
(edge_insets.EdgeInsets.symmetric = function(opts) {
let vertical = opts && 'vertical' in opts ? opts.vertical : 0;
if (vertical == null) dart.nullFailed(I[0], 389, 12, "vertical");
let horizontal = opts && 'horizontal' in opts ? opts.horizontal : 0;
if (horizontal == null) dart.nullFailed(I[0], 390, 12, "horizontal");
this[left$] = horizontal;
this[top$] = vertical;
this[right$] = horizontal;
this[bottom$] = vertical;
edge_insets.EdgeInsets.__proto__.new.call(this);
;
}).prototype = edge_insets.EdgeInsets.prototype;
(edge_insets.EdgeInsets.fromWindowPadding = function(padding, devicePixelRatio) {
if (padding == null) dart.nullFailed(I[0], 402, 49, "padding");
if (devicePixelRatio == null) dart.nullFailed(I[0], 402, 65, "devicePixelRatio");
this[left$] = dart.notNull(padding.left) / dart.notNull(devicePixelRatio);
this[top$] = dart.notNull(padding.top) / dart.notNull(devicePixelRatio);
this[right$] = dart.notNull(padding.right) / dart.notNull(devicePixelRatio);
this[bottom$] = dart.notNull(padding.bottom) / dart.notNull(devicePixelRatio);
edge_insets.EdgeInsets.__proto__.new.call(this);
;
}).prototype = edge_insets.EdgeInsets.prototype;
dart.addTypeTests(edge_insets.EdgeInsets);
dart.addTypeCaches(edge_insets.EdgeInsets);
dart.setMethodSignature(edge_insets.EdgeInsets, () => ({
__proto__: dart.getMethods(edge_insets.EdgeInsets.__proto__),
inflateRect: dart.fnType(ui.Rect, [ui.Rect]),
deflateRect: dart.fnType(ui.Rect, [ui.Rect]),
'-': dart.fnType(edge_insets.EdgeInsets, [edge_insets.EdgeInsets]),
'+': dart.fnType(edge_insets.EdgeInsets, [edge_insets.EdgeInsets]),
_negate: dart.fnType(edge_insets.EdgeInsets, []),
'*': dart.fnType(edge_insets.EdgeInsets, [core.double]),
'/': dart.fnType(edge_insets.EdgeInsets, [core.double]),
'~/': dart.fnType(edge_insets.EdgeInsets, [core.double]),
'%': dart.fnType(edge_insets.EdgeInsets, [core.double]),
resolve: dart.fnType(edge_insets.EdgeInsets, [dart.nullable(ui.TextDirection)]),
copyWith: dart.fnType(edge_insets.EdgeInsets, [], {bottom: dart.nullable(core.double), left: dart.nullable(core.double), right: dart.nullable(core.double), top: dart.nullable(core.double)}, {})
}));
dart.setGetterSignature(edge_insets.EdgeInsets, () => ({
__proto__: dart.getGetters(edge_insets.EdgeInsets.__proto__),
[_left]: core.double,
[_top]: core.double,
[_right]: core.double,
[_bottom]: core.double,
[_start]: core.double,
[_end]: core.double,
topLeft: ui.Offset,
topRight: ui.Offset,
bottomLeft: ui.Offset,
bottomRight: ui.Offset,
flipped: edge_insets.EdgeInsets
}));
dart.setLibraryUri(edge_insets.EdgeInsets, I[1]);
dart.setFieldSignature(edge_insets.EdgeInsets, () => ({
__proto__: dart.getFields(edge_insets.EdgeInsets.__proto__),
left: dart.finalFieldType(core.double),
top: dart.finalFieldType(core.double),
right: dart.finalFieldType(core.double),
bottom: dart.finalFieldType(core.double)
}));
dart.defineLazy(edge_insets.EdgeInsets, {
/*edge_insets.EdgeInsets.zero*/get zero() {
return C[3] || CT.C3;
}
}, false);
var start$ = dart.privateName(edge_insets, "EdgeInsetsDirectional.start");
var top$0 = dart.privateName(edge_insets, "EdgeInsetsDirectional.top");
var end$ = dart.privateName(edge_insets, "EdgeInsetsDirectional.end");
var bottom$0 = dart.privateName(edge_insets, "EdgeInsetsDirectional.bottom");
var _name$ = dart.privateName(ui, "_name");
edge_insets.EdgeInsetsDirectional = class EdgeInsetsDirectional extends edge_insets.EdgeInsetsGeometry {
get start() {
return this[start$];
}
set start(value) {
super.start = value;
}
get top() {
return this[top$0];
}
set top(value) {
super.top = value;
}
get end() {
return this[end$];
}
set end(value) {
super.end = value;
}
get bottom() {
return this[bottom$0];
}
set bottom(value) {
super.bottom = value;
}
get [_start]() {
return this.start;
}
get [_top]() {
return this.top;
}
get [_end]() {
return this.end;
}
get [_bottom]() {
return this.bottom;
}
get [_left]() {
return 0.0;
}
get [_right]() {
return 0.0;
}
get isNonNegative() {
return dart.notNull(this.start) >= 0.0 && dart.notNull(this.top) >= 0.0 && dart.notNull(this.end) >= 0.0 && dart.notNull(this.bottom) >= 0.0;
}
get flipped() {
return new edge_insets.EdgeInsetsDirectional.fromSTEB(this.end, this.bottom, this.start, this.top);
}
subtract(other) {
if (other == null) dart.nullFailed(I[0], 724, 50, "other");
if (edge_insets.EdgeInsetsDirectional.is(other)) return this['-'](other);
return super.subtract(other);
}
add(other) {
if (other == null) dart.nullFailed(I[0], 731, 45, "other");
if (edge_insets.EdgeInsetsDirectional.is(other)) return this['+'](other);
return super.add(other);
}
['-'](other) {
if (other == null) dart.nullFailed(I[0], 738, 58, "other");
return new edge_insets.EdgeInsetsDirectional.fromSTEB(dart.notNull(this.start) - dart.notNull(other.start), dart.notNull(this.top) - dart.notNull(other.top), dart.notNull(this.end) - dart.notNull(other.end), dart.notNull(this.bottom) - dart.notNull(other.bottom));
}
['+'](other) {
if (other == null) dart.nullFailed(I[0], 748, 58, "other");
return new edge_insets.EdgeInsetsDirectional.fromSTEB(dart.notNull(this.start) + dart.notNull(other.start), dart.notNull(this.top) + dart.notNull(other.top), dart.notNull(this.end) + dart.notNull(other.end), dart.notNull(this.bottom) + dart.notNull(other.bottom));
}
_negate() {
return new edge_insets.EdgeInsetsDirectional.fromSTEB(-dart.notNull(this.start), -dart.notNull(this.top), -dart.notNull(this.end), -dart.notNull(this.bottom));
}
['*'](other) {
if (other == null) dart.nullFailed(I[0], 772, 43, "other");
return new edge_insets.EdgeInsetsDirectional.fromSTEB(dart.notNull(this.start) * dart.notNull(other), dart.notNull(this.top) * dart.notNull(other), dart.notNull(this.end) * dart.notNull(other), dart.notNull(this.bottom) * dart.notNull(other));
}
['/'](other) {
if (other == null) dart.nullFailed(I[0], 783, 43, "other");
return new edge_insets.EdgeInsetsDirectional.fromSTEB(dart.notNull(this.start) / dart.notNull(other), dart.notNull(this.top) / dart.notNull(other), dart.notNull(this.end) / dart.notNull(other), dart.notNull(this.bottom) / dart.notNull(other));
}
['~/'](other) {
if (other == null) dart.nullFailed(I[0], 794, 44, "other");
return new edge_insets.EdgeInsetsDirectional.fromSTEB((dart.notNull(this.start) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.top) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.end) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.bottom) / dart.notNull(other))[$truncate]()[$toDouble]());
}
['%'](other) {
if (other == null) dart.nullFailed(I[0], 805, 43, "other");
return new edge_insets.EdgeInsetsDirectional.fromSTEB(this.start[$modulo](other), this.top[$modulo](other), this.end[$modulo](other), this.bottom[$modulo](other));
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 823, 97, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 824, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b)['*'](t);
if (b == null) return a['*'](1.0 - dart.notNull(t));
return new edge_insets.EdgeInsetsDirectional.fromSTEB(dart.nullCheck(ui.lerpDouble(a.start, b.start, t)), dart.nullCheck(ui.lerpDouble(a.top, b.top, t)), dart.nullCheck(ui.lerpDouble(a.end, b.end, t)), dart.nullCheck(ui.lerpDouble(a.bottom, b.bottom, t)));
}
resolve(direction) {
if (!(direction != null)) dart.assertFailed(null, I[0], 841, 12, "direction != null");
switch (dart.nullCheck(direction)) {
case C[4] || CT.C4:
{
return new edge_insets.EdgeInsets.fromLTRB(this.end, this.top, this.start, this.bottom);
}
case C[5] || CT.C5:
{
return new edge_insets.EdgeInsets.fromLTRB(this.start, this.top, this.end, this.bottom);
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
};
(edge_insets.EdgeInsetsDirectional.fromSTEB = function(start, top, end, bottom) {
if (start == null) dart.nullFailed(I[0], 647, 45, "start");
if (top == null) dart.nullFailed(I[0], 647, 57, "top");
if (end == null) dart.nullFailed(I[0], 647, 67, "end");
if (bottom == null) dart.nullFailed(I[0], 647, 77, "bottom");
this[start$] = start;
this[top$0] = top;
this[end$] = end;
this[bottom$0] = bottom;
edge_insets.EdgeInsetsDirectional.__proto__.new.call(this);
;
}).prototype = edge_insets.EdgeInsetsDirectional.prototype;
(edge_insets.EdgeInsetsDirectional.only = function(opts) {
let start = opts && 'start' in opts ? opts.start : 0;
if (start == null) dart.nullFailed(I[0], 660, 10, "start");
let top = opts && 'top' in opts ? opts.top : 0;
if (top == null) dart.nullFailed(I[0], 661, 10, "top");
let end = opts && 'end' in opts ? opts.end : 0;
if (end == null) dart.nullFailed(I[0], 662, 10, "end");
let bottom = opts && 'bottom' in opts ? opts.bottom : 0;
if (bottom == null) dart.nullFailed(I[0], 663, 10, "bottom");
this[start$] = start;
this[top$0] = top;
this[end$] = end;
this[bottom$0] = bottom;
edge_insets.EdgeInsetsDirectional.__proto__.new.call(this);
;
}).prototype = edge_insets.EdgeInsetsDirectional.prototype;
dart.addTypeTests(edge_insets.EdgeInsetsDirectional);
dart.addTypeCaches(edge_insets.EdgeInsetsDirectional);
dart.setMethodSignature(edge_insets.EdgeInsetsDirectional, () => ({
__proto__: dart.getMethods(edge_insets.EdgeInsetsDirectional.__proto__),
'-': dart.fnType(edge_insets.EdgeInsetsDirectional, [edge_insets.EdgeInsetsDirectional]),
'+': dart.fnType(edge_insets.EdgeInsetsDirectional, [edge_insets.EdgeInsetsDirectional]),
_negate: dart.fnType(edge_insets.EdgeInsetsDirectional, []),
'*': dart.fnType(edge_insets.EdgeInsetsDirectional, [core.double]),
'/': dart.fnType(edge_insets.EdgeInsetsDirectional, [core.double]),
'~/': dart.fnType(edge_insets.EdgeInsetsDirectional, [core.double]),
'%': dart.fnType(edge_insets.EdgeInsetsDirectional, [core.double]),
resolve: dart.fnType(edge_insets.EdgeInsets, [dart.nullable(ui.TextDirection)])
}));
dart.setGetterSignature(edge_insets.EdgeInsetsDirectional, () => ({
__proto__: dart.getGetters(edge_insets.EdgeInsetsDirectional.__proto__),
[_start]: core.double,
[_top]: core.double,
[_end]: core.double,
[_bottom]: core.double,
[_left]: core.double,
[_right]: core.double,
flipped: edge_insets.EdgeInsetsDirectional
}));
dart.setLibraryUri(edge_insets.EdgeInsetsDirectional, I[1]);
dart.setFieldSignature(edge_insets.EdgeInsetsDirectional, () => ({
__proto__: dart.getFields(edge_insets.EdgeInsetsDirectional.__proto__),
start: dart.finalFieldType(core.double),
top: dart.finalFieldType(core.double),
end: dart.finalFieldType(core.double),
bottom: dart.finalFieldType(core.double)
}));
dart.defineLazy(edge_insets.EdgeInsetsDirectional, {
/*edge_insets.EdgeInsetsDirectional.zero*/get zero() {
return C[6] || CT.C6;
}
}, false);
const _left$ = _MixedEdgeInsets__left;
const _right$ = _MixedEdgeInsets__right;
const _start$ = _MixedEdgeInsets__start;
const _end$ = _MixedEdgeInsets__end;
const _top$ = _MixedEdgeInsets__top;
const _bottom$ = _MixedEdgeInsets__bottom;
edge_insets._MixedEdgeInsets = class _MixedEdgeInsets extends edge_insets.EdgeInsetsGeometry {
get [_left]() {
return this[_left$];
}
set [_left](value) {
super[_left] = value;
}
get [_right]() {
return this[_right$];
}
set [_right](value) {
super[_right] = value;
}
get [_start]() {
return this[_start$];
}
set [_start](value) {
super[_start] = value;
}
get [_end]() {
return this[_end$];
}
set [_end](value) {
super[_end] = value;
}
get [_top]() {
return this[_top$];
}
set [_top](value) {
super[_top] = value;
}
get [_bottom]() {
return this[_bottom$];
}
set [_bottom](value) {
super[_bottom] = value;
}
get isNonNegative() {
return dart.notNull(this[_left]) >= 0.0 && dart.notNull(this[_right]) >= 0.0 && dart.notNull(this[_start]) >= 0.0 && dart.notNull(this[_end]) >= 0.0 && dart.notNull(this[_top]) >= 0.0 && dart.notNull(this[_bottom]) >= 0.0;
}
_negate() {
return new edge_insets._MixedEdgeInsets.fromLRSETB(-dart.notNull(this[_left]), -dart.notNull(this[_right]), -dart.notNull(this[_start]), -dart.notNull(this[_end]), -dart.notNull(this[_top]), -dart.notNull(this[_bottom]));
}
['*'](other) {
if (other == null) dart.nullFailed(I[0], 895, 38, "other");
return new edge_insets._MixedEdgeInsets.fromLRSETB(dart.notNull(this[_left]) * dart.notNull(other), dart.notNull(this[_right]) * dart.notNull(other), dart.notNull(this[_start]) * dart.notNull(other), dart.notNull(this[_end]) * dart.notNull(other), dart.notNull(this[_top]) * dart.notNull(other), dart.notNull(this[_bottom]) * dart.notNull(other));
}
['/'](other) {
if (other == null) dart.nullFailed(I[0], 907, 38, "other");
return new edge_insets._MixedEdgeInsets.fromLRSETB(dart.notNull(this[_left]) / dart.notNull(other), dart.notNull(this[_right]) / dart.notNull(other), dart.notNull(this[_start]) / dart.notNull(other), dart.notNull(this[_end]) / dart.notNull(other), dart.notNull(this[_top]) / dart.notNull(other), dart.notNull(this[_bottom]) / dart.notNull(other));
}
['~/'](other) {
if (other == null) dart.nullFailed(I[0], 919, 39, "other");
return new edge_insets._MixedEdgeInsets.fromLRSETB((dart.notNull(this[_left]) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this[_right]) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this[_start]) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this[_end]) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this[_top]) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this[_bottom]) / dart.notNull(other))[$truncate]()[$toDouble]());
}
['%'](other) {
if (other == null) dart.nullFailed(I[0], 931, 38, "other");
return new edge_insets._MixedEdgeInsets.fromLRSETB(this[_left][$modulo](other), this[_right][$modulo](other), this[_start][$modulo](other), this[_end][$modulo](other), this[_top][$modulo](other), this[_bottom][$modulo](other));
}
resolve(direction) {
if (!(direction != null)) dart.assertFailed(null, I[0], 944, 12, "direction != null");
switch (dart.nullCheck(direction)) {
case C[4] || CT.C4:
{
return new edge_insets.EdgeInsets.fromLTRB(dart.notNull(this[_end]) + dart.notNull(this[_left]), this[_top], dart.notNull(this[_start]) + dart.notNull(this[_right]), this[_bottom]);
}
case C[5] || CT.C5:
{
return new edge_insets.EdgeInsets.fromLTRB(dart.notNull(this[_start]) + dart.notNull(this[_left]), this[_top], dart.notNull(this[_end]) + dart.notNull(this[_right]), this[_bottom]);
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
};
(edge_insets._MixedEdgeInsets.fromLRSETB = function(_left, _right, _start, _end, _top, _bottom) {
if (_left == null) dart.nullFailed(I[0], 852, 42, "_left");
if (_right == null) dart.nullFailed(I[0], 852, 54, "_right");
if (_start == null) dart.nullFailed(I[0], 852, 67, "_start");
if (_end == null) dart.nullFailed(I[0], 852, 80, "_end");
if (_top == null) dart.nullFailed(I[0], 852, 91, "_top");
if (_bottom == null) dart.nullFailed(I[0], 852, 102, "_bottom");
this[_left$] = _left;
this[_right$] = _right;
this[_start$] = _start;
this[_end$] = _end;
this[_top$] = _top;
this[_bottom$] = _bottom;
edge_insets._MixedEdgeInsets.__proto__.new.call(this);
;
}).prototype = edge_insets._MixedEdgeInsets.prototype;
dart.addTypeTests(edge_insets._MixedEdgeInsets);
dart.addTypeCaches(edge_insets._MixedEdgeInsets);
dart.setMethodSignature(edge_insets._MixedEdgeInsets, () => ({
__proto__: dart.getMethods(edge_insets._MixedEdgeInsets.__proto__),
_negate: dart.fnType(edge_insets._MixedEdgeInsets, []),
'*': dart.fnType(edge_insets._MixedEdgeInsets, [core.double]),
'/': dart.fnType(edge_insets._MixedEdgeInsets, [core.double]),
'~/': dart.fnType(edge_insets._MixedEdgeInsets, [core.double]),
'%': dart.fnType(edge_insets._MixedEdgeInsets, [core.double]),
resolve: dart.fnType(edge_insets.EdgeInsets, [dart.nullable(ui.TextDirection)])
}));
dart.setLibraryUri(edge_insets._MixedEdgeInsets, I[1]);
dart.setFieldSignature(edge_insets._MixedEdgeInsets, () => ({
__proto__: dart.getFields(edge_insets._MixedEdgeInsets.__proto__),
[_left]: dart.finalFieldType(core.double),
[_right]: dart.finalFieldType(core.double),
[_start]: dart.finalFieldType(core.double),
[_end]: dart.finalFieldType(core.double),
[_top]: dart.finalFieldType(core.double),
[_bottom]: dart.finalFieldType(core.double)
}));
dart.trackLibraries("packages/flutter/src/painting/edge_insets.dart", {
"package:flutter/src/painting/edge_insets.dart": edge_insets
}, {
}, '{"version":3,"sourceRoot":"","sources":["edge_insets.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDI,YAAa,AAKT,cALG,gBAAS,OACF,aAAP,iBAAU,OACH,aAAP,iBAAU,OACL,aAAL,eAAQ,OACH,aAAL,eAAQ,OACA,aAAR,kBAAW;IACpB;;AAGyB,YAAM,AAAS,AAAS,cAAxB,4BAAQ,6BAAS,6BAAS;IAAI;;AAGhC,YAAK,cAAL,2BAAO;IAAO;;UAGnB;AAChB,YAAO,AAAK,IAAD;AACX,cAAQ,IAAI;;;AAER,gBAAO;;;;AAEP,gBAAO;;;;AAJX;;;IAMF;;AAG0B,6BAAK,iBAAY;IAAS;;AAGlB,YAAiB,6CAAW,cAAQ,aAAO,YAAM,cAAQ,eAAS;IAAK;;UAWnF;AACpB,YAAO,iBAAgB,aAAX,AAAK,IAAD,uBAAS,kBAAwB,aAAZ,AAAK,IAAD,wBAAU;IACrD;;UAcsB;AACpB,YAAO,iBAAgB,aAAX,AAAK,IAAD,uBAAS,kBAAwB,aAAZ,AAAK,IAAD,wBAAU;IACrD;;UAkB+C;AAC7C,YAAwB,6CAChB,aAAN,4BAAQ,AAAM,KAAD,UACN,aAAP,6BAAS,AAAM,KAAD,WACP,aAAP,6B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2BAAO,KAAK,GACJ,aAAR,8BAAU,KAAK;IAEnB;;UAGmC;AACjC,YAAwB,6CAChB,aAAN,4BAAQ,KAAK,GACN,aAAP,6BAAS,KAAK,GACP,aAAP,6BAAS,KAAK,GACT,aAAL,2BAAO,KAAK,GACP,aAAL,2BAAO,KAAK,GACJ,aAAR,8BAAU,KAAK;IAEnB;;UAGoC;AAClC,YAAwB,6CACf,AAAU,cAAhB,4BAAS,KAAK,8BACP,AAAU,cAAjB,6BAAU,KAAK,8BACR,AAAU,cAAjB,6BAAU,KAAK,8BACV,AAAU,cAAf,2BAAQ,KAAK,8BACR,AAAU,cAAf,2BAAQ,KAAK,8BACL,AAAU,cAAlB,8BAAW,KAAK;IAErB;;UAGmC;AACjC,YAAwB,6CACtB,AAAM,qBAAE,KAAK,GACb,AAAO,sBAAE,KAAK,GACd,AAAO,sBAAE,KAAK,GACd,AAAK,oBAAE,KAAK,GACZ,AAAK,oBAAE,KAAK,GACZ,AAAQ,uBAAE,KAAK;IAEnB;YAGkC;AAChC,YAAO,AAAU,SAAD;AAChB,cAAiB,eAAT,SAAS;;;AAEb,gBAAkB,qCAAc,aAAL,2BAAO,cAAO,YAAa,aAAP,6BAAS,eAAQ;;;;AAEhE,gBAAkB,qCAAgB,aAAP,6BAAS,cAAO,YAAW,aAAL,2BAAO,eAAQ;;;;AAJpE;;;IAMF;;sDAnGuC,OAAY,QAAa,QAAa,MAAW,MAAW;QAA5D;QAAY;QAAa;QAAa;QAAW;QAAW;IAA5D;IAAY;IAAa;IAAa;IAAW;IAAW;AAA7F;;EAAqG","file":"../../../../../../../../../../../packages/flutter/src/painting/edge_insets.dart.lib.js"}');
// Exports:
return {
src__painting__edge_insets: edge_insets
};
}));
//# sourceMappingURL=edge_insets.dart.lib.js.map
define(['dart_sdk', 'packages/flutter/src/foundation/object.dart'], (function load__packages__flutter__src__painting__alignment_dart(dart_sdk, packages__flutter__src__foundation__object$46dart) {
'use strict';
const core = dart_sdk.core;
const ui = dart_sdk.ui;
const _internal = dart_sdk._internal;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const object = packages__flutter__src__foundation__object$46dart.src__foundation__object;
var alignment = Object.create(dart.library);
var $truncate = dartx.truncate;
var $toDouble = dartx.toDouble;
var $modulo = dartx['%'];
var $toStringAsFixed = dartx.toStringAsFixed;
var $runtimeType = dartx.runtimeType;
dart._checkModuleNullSafetyMode(false);
var T = {
_: () => T
};
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({
__proto__: alignment.Alignment.prototype,
[y$]: -1,
[x$]: -1
});
},
get C1() {
return C[1] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: -1,
[x$]: 0
});
},
get C2() {
return C[2] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: -1,
[x$]: 1
});
},
get C3() {
return C[3] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: 0,
[x$]: -1
});
},
get C4() {
return C[4] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: 0,
[x$]: 0
});
},
get C5() {
return C[5] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: 0,
[x$]: 1
});
},
get C6() {
return C[6] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: 1,
[x$]: -1
});
},
get C7() {
return C[7] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: 1,
[x$]: 0
});
},
get C8() {
return C[8] = dart.const({
__proto__: alignment.Alignment.prototype,
[y$]: 1,
[x$]: 1
});
},
get C9() {
return C[9] = dart.const({
__proto__: ui.TextDirection.prototype,
[_name]: "TextDirection.rtl",
index: 0
});
},
get C10() {
return C[10] = dart.const({
__proto__: ui.TextDirection.prototype,
[_name]: "TextDirection.ltr",
index: 1
});
},
get C11() {
return C[11] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: -1,
[start$]: -1
});
},
get C12() {
return C[12] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: -1,
[start$]: 0
});
},
get C13() {
return C[13] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: -1,
[start$]: 1
});
},
get C14() {
return C[14] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: 0,
[start$]: -1
});
},
get C15() {
return C[15] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: 0,
[start$]: 0
});
},
get C16() {
return C[16] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: 0,
[start$]: 1
});
},
get C17() {
return C[17] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: 1,
[start$]: -1
});
},
get C18() {
return C[18] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: 1,
[start$]: 0
});
},
get C19() {
return C[19] = dart.const({
__proto__: alignment.AlignmentDirectional.prototype,
[y$0]: 1,
[start$]: 1
});
},
get C20() {
return C[20] = dart.const({
__proto__: alignment.TextAlignVertical.prototype,
[y$1]: -1
});
},
get C21() {
return C[21] = dart.const({
__proto__: alignment.TextAlignVertical.prototype,
[y$1]: 0
});
},
get C22() {
return C[22] = dart.const({
__proto__: alignment.TextAlignVertical.prototype,
[y$1]: 1
});
}
}, false);
var C = Array(23).fill(void 0);
var I = [
"file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/painting/alignment.dart",
"package:flutter/src/painting/alignment.dart"
];
var _x = dart.privateName(alignment, "_x");
var _start = dart.privateName(alignment, "_start");
var _y = dart.privateName(alignment, "_y");
alignment.AlignmentGeometry = class AlignmentGeometry extends core.Object {
add(other) {
if (other == null) dart.nullFailed(I[0], 43, 43, "other");
return new alignment._MixedAlignment.new(dart.notNull(this[_x]) + dart.notNull(other[_x]), dart.notNull(this[_start]) + dart.notNull(other[_start]), dart.notNull(this[_y]) + dart.notNull(other[_y]));
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 90, 85, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 91, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return dart.nullCheck(b)['*'](t);
if (b == null) return a['*'](1.0 - dart.notNull(t));
if (alignment.Alignment.is(a) && alignment.Alignment.is(b)) return alignment.Alignment.lerp(a, b, t);
if (alignment.AlignmentDirectional.is(a) && alignment.AlignmentDirectional.is(b)) return alignment.AlignmentDirectional.lerp(a, b, t);
return new alignment._MixedAlignment.new(dart.nullCheck(ui.lerpDouble(a[_x], b[_x], t)), dart.nullCheck(ui.lerpDouble(a[_start], b[_start], t)), dart.nullCheck(ui.lerpDouble(a[_y], b[_y], t)));
}
toString() {
if (this[_start] === 0.0) return alignment.Alignment._stringify(this[_x], this[_y]);
if (this[_x] === 0.0) return alignment.AlignmentDirectional._stringify(this[_start], this[_y]);
return dart.notNull(alignment.Alignment._stringify(this[_x], this[_y])) + " + " + dart.notNull(alignment.AlignmentDirectional._stringify(this[_start], 0.0));
}
_equals(other) {
if (other == null) return false;
return alignment.AlignmentGeometry.is(other) && other[_x] == this[_x] && other[_start] == this[_start] && other[_y] == this[_y];
}
get hashCode() {
return ui.hashValues(this[_x], this[_start], this[_y]);
}
};
(alignment.AlignmentGeometry.new = function() {
;
}).prototype = alignment.AlignmentGeometry.prototype;
dart.addTypeTests(alignment.AlignmentGeometry);
dart.addTypeCaches(alignment.AlignmentGeometry);
dart.setMethodSignature(alignment.AlignmentGeometry, () => ({
__proto__: dart.getMethods(alignment.AlignmentGeometry.__proto__),
add: dart.fnType(alignment.AlignmentGeometry, [alignment.AlignmentGeometry])
}));
dart.setLibraryUri(alignment.AlignmentGeometry, I[1]);
dart.defineExtensionMethods(alignment.AlignmentGeometry, ['toString', '_equals']);
dart.defineExtensionAccessors(alignment.AlignmentGeometry, ['hashCode']);
var x$ = dart.privateName(alignment, "Alignment.x");
var y$ = dart.privateName(alignment, "Alignment.y");
alignment.Alignment = class Alignment extends alignment.AlignmentGeometry {
get x() {
return this[x$];
}
set x(value) {
super.x = value;
}
get y() {
return this[y$];
}
set y(value) {
super.y = value;
}
get [_x]() {
return this.x;
}
get [_start]() {
return 0.0;
}
get [_y]() {
return this.y;
}
add(other) {
if (other == null) dart.nullFailed(I[0], 243, 43, "other");
if (alignment.Alignment.is(other)) return this['+'](other);
return super.add(other);
}
['-'](other) {
if (other == null) dart.nullFailed(I[0], 250, 34, "other");
return new alignment.Alignment.new(dart.notNull(this.x) - dart.notNull(other.x), dart.notNull(this.y) - dart.notNull(other.y));
}
['+'](other) {
if (other == null) dart.nullFailed(I[0], 255, 34, "other");
return new alignment.Alignment.new(dart.notNull(this.x) + dart.notNull(other.x), dart.notNull(this.y) + dart.notNull(other.y));
}
_negate() {
return new alignment.Alignment.new(-dart.notNull(this.x), -dart.notNull(this.y));
}
['*'](other) {
if (other == null) dart.nullFailed(I[0], 267, 31, "other");
return new alignment.Alignment.new(dart.notNull(this.x) * dart.notNull(other), dart.notNull(this.y) * dart.notNull(other));
}
['/'](other) {
if (other == null) dart.nullFailed(I[0], 273, 31, "other");
return new alignment.Alignment.new(dart.notNull(this.x) / dart.notNull(other), dart.notNull(this.y) / dart.notNull(other));
}
['~/'](other) {
if (other == null) dart.nullFailed(I[0], 279, 32, "other");
return new alignment.Alignment.new((dart.notNull(this.x) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.y) / dart.notNull(other))[$truncate]()[$toDouble]());
}
['%'](other) {
if (other == null) dart.nullFailed(I[0], 285, 31, "other");
return new alignment.Alignment.new(this.x[$modulo](other), this.y[$modulo](other));
}
alongOffset(other) {
if (other == null) dart.nullFailed(I[0], 290, 29, "other");
let centerX = dart.notNull(other.dx) / 2.0;
let centerY = dart.notNull(other.dy) / 2.0;
return new ui.Offset.new(centerX + dart.notNull(this.x) * centerX, centerY + dart.notNull(this.y) * centerY);
}
alongSize(other) {
if (other == null) dart.nullFailed(I[0], 297, 25, "other");
let centerX = dart.notNull(other.width) / 2.0;
let centerY = dart.notNull(other.height) / 2.0;
return new ui.Offset.new(centerX + dart.notNull(this.x) * centerX, centerY + dart.notNull(this.y) * centerY);
}
withinRect(rect) {
if (rect == null) dart.nullFailed(I[0], 304, 26, "rect");
let halfWidth = dart.notNull(rect.width) / 2.0;
let halfHeight = dart.notNull(rect.height) / 2.0;
return new ui.Offset.new(dart.notNull(rect.left) + halfWidth + dart.notNull(this.x) * halfWidth, dart.notNull(rect.top) + halfHeight + dart.notNull(this.y) * halfHeight);
}
inscribe(size, rect) {
if (size == null) dart.nullFailed(I[0], 319, 22, "size");
if (rect == null) dart.nullFailed(I[0], 319, 33, "rect");
let halfWidthDelta = (dart.notNull(rect.width) - dart.notNull(size.width)) / 2.0;
let halfHeightDelta = (dart.notNull(rect.height) - dart.notNull(size.height)) / 2.0;
return new ui.Rect.fromLTWH(dart.notNull(rect.left) + halfWidthDelta + dart.notNull(this.x) * halfWidthDelta, dart.notNull(rect.top) + halfHeightDelta + dart.notNull(this.y) * halfHeightDelta, size.width, size.height);
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 335, 61, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 336, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return new alignment.Alignment.new(dart.nullCheck(ui.lerpDouble(0.0, dart.nullCheck(b).x, t)), dart.nullCheck(ui.lerpDouble(0.0, b.y, t)));
if (b == null) return new alignment.Alignment.new(dart.nullCheck(ui.lerpDouble(a.x, 0.0, t)), dart.nullCheck(ui.lerpDouble(a.y, 0.0, t)));
return new alignment.Alignment.new(dart.nullCheck(ui.lerpDouble(a.x, b.x, t)), dart.nullCheck(ui.lerpDouble(a.y, b.y, t)));
}
resolve(direction) {
return this;
}
static _stringify(x, y) {
if (x == null) dart.nullFailed(I[0], 349, 35, "x");
if (y == null) dart.nullFailed(I[0], 349, 45, "y");
if (x === -1.0 && y === -1.0) return "Alignment.topLeft";
if (x === 0.0 && y === -1.0) return "Alignment.topCenter";
if (x === 1.0 && y === -1.0) return "Alignment.topRight";
if (x === -1.0 && y === 0.0) return "Alignment.centerLeft";
if (x === 0.0 && y === 0.0) return "Alignment.center";
if (x === 1.0 && y === 0.0) return "Alignment.centerRight";
if (x === -1.0 && y === 1.0) return "Alignment.bottomLeft";
if (x === 0.0 && y === 1.0) return "Alignment.bottomCenter";
if (x === 1.0 && y === 1.0) return "Alignment.bottomRight";
return "Alignment(" + x[$toStringAsFixed](1) + ", " + y[$toStringAsFixed](1) + ")";
}
toString() {
return alignment.Alignment._stringify(this.x, this.y);
}
};
(alignment.Alignment.new = function(x, y) {
if (x == null) dart.nullFailed(I[0], 185, 24, "x");
if (y == null) dart.nullFailed(I[0], 185, 32, "y");
this[x$] = x;
this[y$] = y;
if (!(x != null)) dart.assertFailed(null, I[0], 186, 14, "x != null");
if (!(y != null)) dart.assertFailed(null, I[0], 187, 14, "y != null");
alignment.Alignment.__proto__.new.call(this);
;
}).prototype = alignment.Alignment.prototype;
dart.addTypeTests(alignment.Alignment);
dart.addTypeCaches(alignment.Alignment);
dart.setMethodSignature(alignment.Alignment, () => ({
__proto__: dart.getMethods(alignment.Alignment.__proto__),
'-': dart.fnType(alignment.Alignment, [alignment.Alignment]),
'+': dart.fnType(alignment.Alignment, [alignment.Alignment]),
_negate: dart.fnType(alignment.Alignment, []),
'*': dart.fnType(alignment.Alignment, [core.double]),
'/': dart.fnType(alignment.Alignment, [core.double]),
'~/': dart.fnType(alignment.Alignment, [core.double]),
'%': dart.fnType(alignment.Alignment, [core.double]),
alongOffset: dart.fnType(ui.Offset, [ui.Offset]),
alongSize: dart.fnType(ui.Offset, [ui.Size]),
withinRect: dart.fnType(ui.Offset, [ui.Rect]),
inscribe: dart.fnType(ui.Rect, [ui.Size, ui.Rect]),
resolve: dart.fnType(alignment.Alignment, [dart.nullable(ui.TextDirection)])
}));
dart.setGetterSignature(alignment.Alignment, () => ({
__proto__: dart.getGetters(alignment.Alignment.__proto__),
[_x]: core.double,
[_start]: core.double,
[_y]: core.double
}));
dart.setLibraryUri(alignment.Alignment, I[1]);
dart.setFieldSignature(alignment.Alignment, () => ({
__proto__: dart.getFields(alignment.Alignment.__proto__),
x: dart.finalFieldType(core.double),
y: dart.finalFieldType(core.double)
}));
dart.defineExtensionMethods(alignment.Alignment, ['toString']);
dart.defineLazy(alignment.Alignment, {
/*alignment.Alignment.topLeft*/get topLeft() {
return C[0] || CT.C0;
},
/*alignment.Alignment.topCenter*/get topCenter() {
return C[1] || CT.C1;
},
/*alignment.Alignment.topRight*/get topRight() {
return C[2] || CT.C2;
},
/*alignment.Alignment.centerLeft*/get centerLeft() {
return C[3] || CT.C3;
},
/*alignment.Alignment.center*/get center() {
return C[4] || CT.C4;
},
/*alignment.Alignment.centerRight*/get centerRight() {
return C[5] || CT.C5;
},
/*alignment.Alignment.bottomLeft*/get bottomLeft() {
return C[6] || CT.C6;
},
/*alignment.Alignment.bottomCenter*/get bottomCenter() {
return C[7] || CT.C7;
},
/*alignment.Alignment.bottomRight*/get bottomRight() {
return C[8] || CT.C8;
}
}, false);
var start$ = dart.privateName(alignment, "AlignmentDirectional.start");
var y$0 = dart.privateName(alignment, "AlignmentDirectional.y");
var _name = dart.privateName(ui, "_name");
alignment.AlignmentDirectional = class AlignmentDirectional extends alignment.AlignmentGeometry {
get start() {
return this[start$];
}
set start(value) {
super.start = value;
}
get y() {
return this[y$0];
}
set y(value) {
super.y = value;
}
get [_x]() {
return 0.0;
}
get [_start]() {
return this.start;
}
get [_y]() {
return this.y;
}
add(other) {
if (other == null) dart.nullFailed(I[0], 465, 43, "other");
if (alignment.AlignmentDirectional.is(other)) return this['+'](other);
return super.add(other);
}
['-'](other) {
if (other == null) dart.nullFailed(I[0], 472, 56, "other");
return new alignment.AlignmentDirectional.new(dart.notNull(this.start) - dart.notNull(other.start), dart.notNull(this.y) - dart.notNull(other.y));
}
['+'](other) {
if (other == null) dart.nullFailed(I[0], 477, 56, "other");
return new alignment.AlignmentDirectional.new(dart.notNull(this.start) + dart.notNull(other.start), dart.notNull(this.y) + dart.notNull(other.y));
}
_negate() {
return new alignment.AlignmentDirectional.new(-dart.notNull(this.start), -dart.notNull(this.y));
}
['*'](other) {
if (other == null) dart.nullFailed(I[0], 489, 42, "other");
return new alignment.AlignmentDirectional.new(dart.notNull(this.start) * dart.notNull(other), dart.notNull(this.y) * dart.notNull(other));
}
['/'](other) {
if (other == null) dart.nullFailed(I[0], 495, 42, "other");
return new alignment.AlignmentDirectional.new(dart.notNull(this.start) / dart.notNull(other), dart.notNull(this.y) / dart.notNull(other));
}
['~/'](other) {
if (other == null) dart.nullFailed(I[0], 501, 43, "other");
return new alignment.AlignmentDirectional.new((dart.notNull(this.start) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this.y) / dart.notNull(other))[$truncate]()[$toDouble]());
}
['%'](other) {
if (other == null) dart.nullFailed(I[0], 507, 42, "other");
return new alignment.AlignmentDirectional.new(this.start[$modulo](other), this.y[$modulo](other));
}
static lerp(a, b, t) {
if (t == null) dart.nullFailed(I[0], 516, 94, "t");
if (!(t != null)) dart.assertFailed(null, I[0], 517, 12, "t != null");
if (a == null && b == null) return null;
if (a == null) return new alignment.AlignmentDirectional.new(dart.nullCheck(ui.lerpDouble(0.0, dart.nullCheck(b).start, t)), dart.nullCheck(ui.lerpDouble(0.0, b.y, t)));
if (b == null) return new alignment.AlignmentDirectional.new(dart.nullCheck(ui.lerpDouble(a.start, 0.0, t)), dart.nullCheck(ui.lerpDouble(a.y, 0.0, t)));
return new alignment.AlignmentDirectional.new(dart.nullCheck(ui.lerpDouble(a.start, b.start, t)), dart.nullCheck(ui.lerpDouble(a.y, b.y, t)));
}
resolve(direction) {
if (!(direction != null)) dart.assertFailed("Cannot resolve " + dart.str(this[$runtimeType]) + " without a TextDirection.", I[0], 529, 12, "direction != null");
switch (dart.nullCheck(direction)) {
case C[9] || CT.C9:
{
return new alignment.Alignment.new(-dart.notNull(this.start), this.y);
}
case C[10] || CT.C10:
{
return new alignment.Alignment.new(this.start, this.y);
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
static _stringify(start, y) {
if (start == null) dart.nullFailed(I[0], 538, 35, "start");
if (y == null) dart.nullFailed(I[0], 538, 49, "y");
if (start === -1.0 && y === -1.0) return "AlignmentDirectional.topStart";
if (start === 0.0 && y === -1.0) return "AlignmentDirectional.topCenter";
if (start === 1.0 && y === -1.0) return "AlignmentDirectional.topEnd";
if (start === -1.0 && y === 0.0) return "AlignmentDirectional.centerStart";
if (start === 0.0 && y === 0.0) return "AlignmentDirectional.center";
if (start === 1.0 && y === 0.0) return "AlignmentDirectional.centerEnd";
if (start === -1.0 && y === 1.0) return "AlignmentDirectional.bottomStart";
if (start === 0.0 && y === 1.0) return "AlignmentDirectional.bottomCenter";
if (start === 1.0 && y === 1.0) return "AlignmentDirectional.bottomEnd";
return "AlignmentDirectional(" + start[$toStringAsFixed](1) + ", " + y[$toStringAsFixed](1) + ")";
}
toString() {
return alignment.AlignmentDirectional._stringify(this.start, this.y);
}
};
(alignment.AlignmentDirectional.new = function(start, y) {
if (start == null) dart.nullFailed(I[0], 391, 35, "start");
if (y == null) dart.nullFailed(I[0], 391, 47, "y");
this[start$] = start;
this[y$0] = y;
if (!(start != null)) dart.assertFailed(null, I[0], 392, 14, "start != null");
if (!(y != null)) dart.assertFailed(null, I[0], 393, 14, "y != null");
alignment.AlignmentDirectional.__proto__.new.call(this);
;
}).prototype = alignment.AlignmentDirectional.prototype;
dart.addTypeTests(alignment.AlignmentDirectional);
dart.addTypeCaches(alignment.AlignmentDirectional);
dart.setMethodSignature(alignment.AlignmentDirectional, () => ({
__proto__: dart.getMethods(alignment.AlignmentDirectional.__proto__),
'-': dart.fnType(alignment.AlignmentDirectional, [alignment.AlignmentDirectional]),
'+': dart.fnType(alignment.AlignmentDirectional, [alignment.AlignmentDirectional]),
_negate: dart.fnType(alignment.AlignmentDirectional, []),
'*': dart.fnType(alignment.AlignmentDirectional, [core.double]),
'/': dart.fnType(alignment.AlignmentDirectional, [core.double]),
'~/': dart.fnType(alignment.AlignmentDirectional, [core.double]),
'%': dart.fnType(alignment.AlignmentDirectional, [core.double]),
resolve: dart.fnType(alignment.Alignment, [dart.nullable(ui.TextDirection)])
}));
dart.setGetterSignature(alignment.AlignmentDirectional, () => ({
__proto__: dart.getGetters(alignment.AlignmentDirectional.__proto__),
[_x]: core.double,
[_start]: core.double,
[_y]: core.double
}));
dart.setLibraryUri(alignment.AlignmentDirectional, I[1]);
dart.setFieldSignature(alignment.AlignmentDirectional, () => ({
__proto__: dart.getFields(alignment.AlignmentDirectional.__proto__),
start: dart.finalFieldType(core.double),
y: dart.finalFieldType(core.double)
}));
dart.defineExtensionMethods(alignment.AlignmentDirectional, ['toString']);
dart.defineLazy(alignment.AlignmentDirectional, {
/*alignment.AlignmentDirectional.topStart*/get topStart() {
return C[11] || CT.C11;
},
/*alignment.AlignmentDirectional.topCenter*/get topCenter() {
return C[12] || CT.C12;
},
/*alignment.AlignmentDirectional.topEnd*/get topEnd() {
return C[13] || CT.C13;
},
/*alignment.AlignmentDirectional.centerStart*/get centerStart() {
return C[14] || CT.C14;
},
/*alignment.AlignmentDirectional.center*/get center() {
return C[15] || CT.C15;
},
/*alignment.AlignmentDirectional.centerEnd*/get centerEnd() {
return C[16] || CT.C16;
},
/*alignment.AlignmentDirectional.bottomStart*/get bottomStart() {
return C[17] || CT.C17;
},
/*alignment.AlignmentDirectional.bottomCenter*/get bottomCenter() {
return C[18] || CT.C18;
},
/*alignment.AlignmentDirectional.bottomEnd*/get bottomEnd() {
return C[19] || CT.C19;
}
}, false);
var _x$ = dart.privateName(alignment, "_MixedAlignment._x");
var _start$ = dart.privateName(alignment, "_MixedAlignment._start");
var _y$ = dart.privateName(alignment, "_MixedAlignment._y");
alignment._MixedAlignment = class _MixedAlignment extends alignment.AlignmentGeometry {
get [_x]() {
return this[_x$];
}
set [_x](value) {
super[_x] = value;
}
get [_start]() {
return this[_start$];
}
set [_start](value) {
super[_start] = value;
}
get [_y]() {
return this[_y$];
}
set [_y](value) {
super[_y] = value;
}
_negate() {
return new alignment._MixedAlignment.new(-dart.notNull(this[_x]), -dart.notNull(this[_start]), -dart.notNull(this[_y]));
}
['*'](other) {
if (other == null) dart.nullFailed(I[0], 587, 37, "other");
return new alignment._MixedAlignment.new(dart.notNull(this[_x]) * dart.notNull(other), dart.notNull(this[_start]) * dart.notNull(other), dart.notNull(this[_y]) * dart.notNull(other));
}
['/'](other) {
if (other == null) dart.nullFailed(I[0], 596, 37, "other");
return new alignment._MixedAlignment.new(dart.notNull(this[_x]) / dart.notNull(other), dart.notNull(this[_start]) / dart.notNull(other), dart.notNull(this[_y]) / dart.notNull(other));
}
['~/'](other) {
if (other == null) dart.nullFailed(I[0], 605, 38, "other");
return new alignment._MixedAlignment.new((dart.notNull(this[_x]) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this[_start]) / dart.notNull(other))[$truncate]()[$toDouble](), (dart.notNull(this[_y]) / dart.notNull(other))[$truncate]()[$toDouble]());
}
['%'](other) {
if (other == null) dart.nullFailed(I[0], 614, 37, "other");
return new alignment._MixedAlignment.new(this[_x][$modulo](other), this[_start][$modulo](other), this[_y][$modulo](other));
}
resolve(direction) {
if (!(direction != null)) dart.assertFailed("Cannot resolve " + dart.str(this[$runtimeType]) + " without a TextDirection.", I[0], 624, 12, "direction != null");
switch (dart.nullCheck(direction)) {
case C[9] || CT.C9:
{
return new alignment.Alignment.new(dart.notNull(this[_x]) - dart.notNull(this[_start]), this[_y]);
}
case C[10] || CT.C10:
{
return new alignment.Alignment.new(dart.notNull(this[_x]) + dart.notNull(this[_start]), this[_y]);
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
};
(alignment._MixedAlignment.new = function(_x, _start, _y) {
if (_x == null) dart.nullFailed(I[0], 566, 30, "_x");
if (_start == null) dart.nullFailed(I[0], 566, 39, "_start");
if (_y == null) dart.nullFailed(I[0], 566, 52, "_y");
this[_x$] = _x;
this[_start$] = _start;
this[_y$] = _y;
alignment._MixedAlignment.__proto__.new.call(this);
;
}).prototype = alignment._MixedAlignment.prototype;
dart.addTypeTests(alignment._MixedAlignment);
dart.addTypeCaches(alignment._MixedAlignment);
dart.setMethodSignature(alignment._MixedAlignment, () => ({
__proto__: dart.getMethods(alignment._MixedAlignment.__proto__),
_negate: dart.fnType(alignment._MixedAlignment, []),
'*': dart.fnType(alignment._MixedAlignment, [core.double]),
'/': dart.fnType(alignment._MixedAlignment, [core.double]),
'~/': dart.fnType(alignment._MixedAlignment, [core.double]),
'%': dart.fnType(alignment._MixedAlignment, [core.double]),
resolve: dart.fnType(alignment.Alignment, [dart.nullable(ui.TextDirection)])
}));
dart.setLibraryUri(alignment._MixedAlignment, I[1]);
dart.setFieldSignature(alignment._MixedAlignment, () => ({
__proto__: dart.getFields(alignment._MixedAlignment.__proto__),
[_x]: dart.finalFieldType(core.double),
[_start]: dart.finalFieldType(core.double),
[_y]: dart.finalFieldType(core.double)
}));
var y$1 = dart.privateName(alignment, "TextAlignVertical.y");
alignment.TextAlignVertical = class TextAlignVertical extends core.Object {
get y() {
return this[y$1];
}
set y(value) {
super.y = value;
}
toString() {
return dart.str(object.objectRuntimeType(this, "TextAlignVertical")) + "(y: " + dart.str(this.y) + ")";
}
};
(alignment.TextAlignVertical.new = function(opts) {
let y = opts && 'y' in opts ? opts.y : null;
if (y == null) dart.nullFailed(I[0], 652, 19, "y");
this[y$1] = y;
if (!(y != null)) dart.assertFailed(null, I[0], 653, 15, "y != null");
if (!(dart.notNull(y) >= -1.0 && dart.notNull(y) <= 1.0)) dart.assertFailed(null, I[0], 654, 15, "y >= -1.0 && y <= 1.0");
;
}).prototype = alignment.TextAlignVertical.prototype;
dart.addTypeTests(alignment.TextAlignVertical);
dart.addTypeCaches(alignment.TextAlignVertical);
dart.setLibraryUri(alignment.TextAlignVertical, I[1]);
dart.setFieldSignature(alignment.TextAlignVertical, () => ({
__proto__: dart.getFields(alignment.TextAlignVertical.__proto__),
y: dart.finalFieldType(core.double)
}));
dart.defineExtensionMethods(alignment.TextAlignVertical, ['toString']);
dart.defineLazy(alignment.TextAlignVertical, {
/*alignment.TextAlignVertical.top*/get top() {
return C[20] || CT.C20;
},
/*alignment.TextAlignVertical.center*/get center() {
return C[21] || CT.C21;
},
/*alignment.TextAlignVertical.bottom*/get bottom() {
return C[22] || CT.C22;
}
}, false);
dart.trackLibraries("packages/flutter/src/painting/alignment.dart", {
"package:flutter/src/painting/alignment.dart": alignment
}, {
}, '{"version":3,"sourceRoot":"","sources":["alignment.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA0C0C;AACtC,YAAO,mCACF,aAAH,yBAAK,AAAM,KAAD,OACH,aAAP,6BAAS,AAAM,KAAD,WACX,aAAH,yBAAK,AAAM,KAAD;IAEd;gBAyCkD,GAAsB;UAAU;AAChF,YAAO,AAAE,CAAD;AACR,UAAI,AAAE,CAAD,YAAY,AAAE,CAAD,UAChB,MAAO;AACT,UAAI,AAAE,CAAD,UACH,MAAQ,AAAE,gBAAH,CAAC,OAAI,CAAC;AACf,UAAI,AAAE,CAAD,UACH,MAAO,AAAE,EAAD,MAAI,AAAI,mBAAE,CAAC;AACrB,UAAM,uBAAF,CAAC,KAAmB,uBAAF,CAAC,GACrB,MAAiB,0BAAK,CAAC,EAAE,CAAC,EAAE,CAAC;AAC/B,UAAM,kCAAF,CAAC,KAA8B,kCAAF,CAAC,GAChC,MAA4B,qCAAK,CAAC,EAAE,CAAC,EAAE,CAAC;AAC1C,YAAO,mCACuB,e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
// Exports:
return {
src__painting__alignment: alignment
};
}));
//# sourceMappingURL=alignment.dart.lib.js.map
define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/flutter/src/cupertino/route.dart', 'packages/flutter/src/foundation/debug.dart', 'packages/flutter/src/material/icon_button.dart', 'packages/flutter/src/animation/listener_helpers.dart'], (function load__packages__flutter__src__material__page_dart(dart_sdk, packages__flutter__src__widgets__widget_span$46dart, packages__flutter__src__cupertino__route$46dart, packages__flutter__src__foundation__debug$46dart, packages__flutter__src__material__icon_button$46dart, packages__flutter__src__animation__listener_helpers$46dart) {
'use strict';
const core = dart_sdk.core;
const ui = dart_sdk.ui;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const pages = packages__flutter__src__widgets__widget_span$46dart.src__widgets__pages;
const basic = packages__flutter__src__widgets__widget_span$46dart.src__widgets__basic;
const widget_inspector = packages__flutter__src__widgets__widget_span$46dart.src__widgets__widget_inspector;
const framework = packages__flutter__src__widgets__widget_span$46dart.src__widgets__framework;
const navigator = packages__flutter__src__widgets__widget_span$46dart.src__widgets__navigator;
const route = packages__flutter__src__cupertino__route$46dart.src__cupertino__route;
const assertions = packages__flutter__src__foundation__debug$46dart.src__foundation__assertions;
const theme$ = packages__flutter__src__material__icon_button$46dart.src__material__theme;
const animation = packages__flutter__src__animation__listener_helpers$46dart.src__animation__animation;
var page = Object.create(dart.library);
dart._checkModuleNullSafetyMode(false);
var T$ = {
VoidTobool: () => (T$.VoidTobool = dart.constFn(dart.fnType(core.bool, [])))(),
_LocationL: () => (T$._LocationL = dart.constFn(dart.legacy(widget_inspector._Location)))()
};
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({
__proto__: core.Duration.prototype,
[Duration__duration]: 300000
});
},
get C3() {
return C[3] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "scopesRoute",
[_Location_column]: 7,
[_Location_line]: 118,
[_Location_file]: null
});
},
get C4() {
return C[4] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "explicitChildNodes",
[_Location_column]: 7,
[_Location_line]: 119,
[_Location_file]: null
});
},
get C5() {
return C[5] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "child",
[_Location_column]: 7,
[_Location_line]: 120,
[_Location_file]: null
});
},
get C2() {
return C[2] = dart.constList([C[3] || CT.C3, C[4] || CT.C4, C[5] || CT.C5], T$._LocationL());
},
get C1() {
return C[1] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[2] || CT.C2,
[_Location_name]: null,
[_Location_column]: 12,
[_Location_line]: 117,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/page.dart"
});
}
}, false);
var C = Array(6).fill(void 0);
var I = [
"file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/page.dart",
"package:flutter/src/material/page.dart"
];
var builder$ = dart.privateName(page, "MaterialPageRoute.builder");
var maintainState$ = dart.privateName(page, "MaterialPageRoute.maintainState");
var Duration__duration = dart.privateName(core, "Duration._duration");
var _Location_parameterLocations = dart.privateName(widget_inspector, "_Location.parameterLocations");
var _Location_name = dart.privateName(widget_inspector, "_Location.name");
var _Location_column = dart.privateName(widget_inspector, "_Location.column");
var _Location_line = dart.privateName(widget_inspector, "_Location.line");
var _Location_file = dart.privateName(widget_inspector, "_Location.file");
const _is_MaterialRouteTransitionMixin_default = Symbol('_is_MaterialRouteTransitionMixin_default');
page.MaterialRouteTransitionMixin$ = dart.generic(T => {
class MaterialRouteTransitionMixin extends pages.PageRoute$(T) {}
MaterialRouteTransitionMixin[dart.mixinOn] = PageRoute => class MaterialRouteTransitionMixin extends PageRoute {
get transitionDuration() {
return C[0] || CT.C0;
}
get barrierColor() {
return null;
}
get barrierLabel() {
return null;
}
canTransitionTo(nextRoute) {
if (nextRoute == null) dart.nullFailed(I[0], 95, 49, "nextRoute");
return page.MaterialRouteTransitionMixin.is(nextRoute) && !dart.test(nextRoute.fullscreenDialog) || route.CupertinoRouteTransitionMixin.is(nextRoute) && !dart.test(nextRoute.fullscreenDialog);
}
buildPage(context, animation, secondaryAnimation) {
if (context == null) dart.nullFailed(I[0], 103, 18, "context");
if (animation == null) dart.nullFailed(I[0], 104, 23, "animation");
if (secondaryAnimation == null) dart.nullFailed(I[0], 105, 23, "secondaryAnimation");
let result = this.buildContent(context);
if (!dart.test(dart.fn(() => {
if (result == null) {
dart.throw(assertions.FlutterError.new("The builder for route \"" + dart.str(this.settings.name) + "\" returned null.\n" + "Route builders must never return null."));
}
return true;
}, T$.VoidTobool())())) dart.assertFailed(null, I[0], 108, 12, "() {\r\n if (result == null) {\r\n throw FlutterError(\r\n 'The builder for route \"${settings.name}\" returned null.\\n'\r\n 'Route builders must never return null.'\r\n );\r\n }\r\n return true;\r\n }()");
return new basic.Semantics.new({scopesRoute: true, explicitChildNodes: true, child: result, $creationLocationd_0dea112b090073317d4: C[1] || CT.C1});
}
buildTransitions(context, animation, secondaryAnimation, child) {
if (context == null) dart.nullFailed(I[0], 125, 40, "context");
if (animation == null) dart.nullFailed(I[0], 125, 67, "animation");
if (secondaryAnimation == null) dart.nullFailed(I[0], 125, 96, "secondaryAnimation");
if (child == null) dart.nullFailed(I[0], 125, 123, "child");
let theme = theme$.Theme.of(context).pageTransitionsTheme;
return theme.buildTransitions(T, this, context, animation, secondaryAnimation, child);
}
};
dart.addTypeTests(MaterialRouteTransitionMixin);
MaterialRouteTransitionMixin.prototype[_is_MaterialRouteTransitionMixin_default] = true;
dart.addTypeCaches(MaterialRouteTransitionMixin);
MaterialRouteTransitionMixin[dart.implements] = () => [pages.PageRoute$(T)];
dart.setMethodSignature(MaterialRouteTransitionMixin, () => ({
__proto__: dart.getMethods(MaterialRouteTransitionMixin.__proto__),
buildPage: dart.fnType(framework.Widget, [framework.BuildContext, animation.Animation$(core.double), animation.Animation$(core.double)])
}));
dart.setGetterSignature(MaterialRouteTransitionMixin, () => ({
__proto__: dart.getGetters(MaterialRouteTransitionMixin.__proto__),
transitionDuration: core.Duration,
barrierColor: dart.nullable(ui.Color),
barrierLabel: dart.nullable(core.String)
}));
dart.setLibraryUri(MaterialRouteTransitionMixin, I[1]);
return MaterialRouteTransitionMixin;
});
page.MaterialRouteTransitionMixin = page.MaterialRouteTransitionMixin$();
dart.addTypeTests(page.MaterialRouteTransitionMixin, _is_MaterialRouteTransitionMixin_default);
const _is_MaterialPageRoute_default = Symbol('_is_MaterialPageRoute_default');
page.MaterialPageRoute$ = dart.generic(T => {
const PageRoute_MaterialRouteTransitionMixin$36 = class PageRoute_MaterialRouteTransitionMixin extends pages.PageRoute$(T) {};
(PageRoute_MaterialRouteTransitionMixin$36.new = function(opts) {
PageRoute_MaterialRouteTransitionMixin$36.__proto__.new.call(this, opts);
}).prototype = PageRoute_MaterialRouteTransitionMixin$36.prototype;
dart.applyMixin(PageRoute_MaterialRouteTransitionMixin$36, page.MaterialRouteTransitionMixin$(T));
class MaterialPageRoute extends PageRoute_MaterialRouteTransitionMixin$36 {
get builder() {
return this[builder$];
}
set builder(value) {
super.builder = value;
}
get maintainState() {
return this[maintainState$];
}
set maintainState(value) {
super.maintainState = value;
}
buildContent(context) {
let t0;
if (context == null) dart.nullFailed(I[0], 54, 36, "context");
t0 = context;
return this.builder(t0);
}
get debugLabel() {
return dart.str(super.debugLabel) + "(" + dart.str(this.settings.name) + ")";
}
}
(MaterialPageRoute.new = function(opts) {
let builder = opts && 'builder' in opts ? opts.builder : null;
if (builder == null) dart.nullFailed(I[0], 39, 19, "builder");
let settings = opts && 'settings' in opts ? opts.settings : null;
let maintainState = opts && 'maintainState' in opts ? opts.maintainState : true;
if (maintainState == null) dart.nullFailed(I[0], 41, 10, "maintainState");
let fullscreenDialog = opts && 'fullscreenDialog' in opts ? opts.fullscreenDialog : false;
if (fullscreenDialog == null) dart.nullFailed(I[0], 42, 10, "fullscreenDialog");
this[builder$] = builder;
this[maintainState$] = maintainState;
if (!(builder != null)) dart.assertFailed(null, I[0], 43, 15, "builder != null");
if (!(maintainState != null)) dart.assertFailed(null, I[0], 44, 15, "maintainState != null");
if (!(fullscreenDialog != null)) dart.assertFailed(null, I[0], 45, 15, "fullscreenDialog != null");
MaterialPageRoute.__proto__.new.call(this, {settings: settings, fullscreenDialog: fullscreenDialog});
if (!dart.test(this.opaque)) dart.assertFailed(null, I[0], 47, 12, "opaque");
}).prototype = MaterialPageRoute.prototype;
dart.addTypeTests(MaterialPageRoute);
MaterialPageRoute.prototype[_is_MaterialPageRoute_default] = true;
dart.addTypeCaches(MaterialPageRoute);
dart.setMethodSignature(MaterialPageRoute, () => ({
__proto__: dart.getMethods(MaterialPageRoute.__proto__),
buildContent: dart.fnType(framework.Widget, [framework.BuildContext])
}));
dart.setLibraryUri(MaterialPageRoute, I[1]);
dart.setFieldSignature(MaterialPageRoute, () => ({
__proto__: dart.getFields(MaterialPageRoute.__proto__),
builder: dart.finalFieldType(dart.fnType(framework.Widget, [framework.BuildContext])),
maintainState: dart.finalFieldType(core.bool)
}));
return MaterialPageRoute;
});
page.MaterialPageRoute = page.MaterialPageRoute$();
dart.addTypeTests(page.MaterialPageRoute, _is_MaterialPageRoute_default);
var child$ = dart.privateName(page, "MaterialPage.child");
var maintainState$0 = dart.privateName(page, "MaterialPage.maintainState");
var fullscreenDialog$ = dart.privateName(page, "MaterialPage.fullscreenDialog");
const _is_MaterialPage_default = Symbol('_is_MaterialPage_default');
page.MaterialPage$ = dart.generic(T => {
var _PageBasedMaterialPageRouteOfT = () => (_PageBasedMaterialPageRouteOfT = dart.constFn(page._PageBasedMaterialPageRoute$(T)))();
class MaterialPage extends navigator.Page$(T) {
get child() {
return this[child$];
}
set child(value) {
super.child = value;
}
get maintainState() {
return this[maintainState$0];
}
set maintainState(value) {
super.maintainState = value;
}
get fullscreenDialog() {
return this[fullscreenDialog$];
}
set fullscreenDialog(value) {
super.fullscreenDialog = value;
}
createRoute(context) {
if (context == null) dart.nullFailed(I[0], 175, 37, "context");
return new (_PageBasedMaterialPageRouteOfT()).new({page: this});
}
}
(MaterialPage.new = function(opts) {
let child = opts && 'child' in opts ? opts.child : null;
if (child == null) dart.nullFailed(I[0], 154, 19, "child");
let maintainState = opts && 'maintainState' in opts ? opts.maintainState : true;
if (maintainState == null) dart.nullFailed(I[0], 155, 10, "maintainState");
let fullscreenDialog = opts && 'fullscreenDialog' in opts ? opts.fullscreenDialog : false;
if (fullscreenDialog == null) dart.nullFailed(I[0], 156, 10, "fullscreenDialog");
let key = opts && 'key' in opts ? opts.key : null;
let name = opts && 'name' in opts ? opts.name : null;
let $arguments = opts && 'arguments' in opts ? opts.arguments : null;
this[child$] = child;
this[maintainState$0] = maintainState;
this[fullscreenDialog$] = fullscreenDialog;
if (!(child != null)) dart.assertFailed(null, I[0], 160, 15, "child != null");
if (!(maintainState != null)) dart.assertFailed(null, I[0], 161, 15, "maintainState != null");
if (!(fullscreenDialog != null)) dart.assertFailed(null, I[0], 162, 15, "fullscreenDialog != null");
MaterialPage.__proto__.new.call(this, {key: key, name: name, arguments: $arguments});
;
}).prototype = MaterialPage.prototype;
dart.addTypeTests(MaterialPage);
MaterialPage.prototype[_is_MaterialPage_default] = true;
dart.addTypeCaches(MaterialPage);
dart.setMethodSignature(MaterialPage, () => ({
__proto__: dart.getMethods(MaterialPage.__proto__),
createRoute: dart.fnType(navigator.Route$(T), [framework.BuildContext])
}));
dart.setLibraryUri(MaterialPage, I[1]);
dart.setFieldSignature(MaterialPage, () => ({
__proto__: dart.getFields(MaterialPage.__proto__),
child: dart.finalFieldType(framework.Widget),
maintainState: dart.finalFieldType(core.bool),
fullscreenDialog: dart.finalFieldType(core.bool)
}));
return MaterialPage;
});
page.MaterialPage = page.MaterialPage$();
dart.addTypeTests(page.MaterialPage, _is_MaterialPage_default);
var _page = dart.privateName(page, "_page");
const _is__PageBasedMaterialPageRoute_default = Symbol('_is__PageBasedMaterialPageRoute_default');
page._PageBasedMaterialPageRoute$ = dart.generic(T => {
var MaterialPageOfT = () => (MaterialPageOfT = dart.constFn(page.MaterialPage$(T)))();
const PageRoute_MaterialRouteTransitionMixin$36 = class PageRoute_MaterialRouteTransitionMixin extends pages.PageRoute$(T) {};
(PageRoute_MaterialRouteTransitionMixin$36.new = function(opts) {
PageRoute_MaterialRouteTransitionMixin$36.__proto__.new.call(this, opts);
}).prototype = PageRoute_MaterialRouteTransitionMixin$36.prototype;
dart.applyMixin(PageRoute_MaterialRouteTransitionMixin$36, page.MaterialRouteTransitionMixin$(T));
class _PageBasedMaterialPageRoute extends PageRoute_MaterialRouteTransitionMixin$36 {
get [_page]() {
return MaterialPageOfT().as(this.settings);
}
buildContent(context) {
if (context == null) dart.nullFailed(I[0], 195, 36, "context");
return this[_page].child;
}
get maintainState() {
return this[_page].maintainState;
}
get fullscreenDialog() {
return this[_page].fullscreenDialog;
}
get debugLabel() {
return dart.str(super.debugLabel) + "(" + dart.str(this[_page].name) + ")";
}
}
(_PageBasedMaterialPageRoute.new = function(opts) {
let page = opts && 'page' in opts ? opts.page : null;
if (page == null) dart.nullFailed(I[0], 186, 30, "page");
if (!(page != null)) dart.assertFailed(null, I[0], 187, 15, "page != null");
_PageBasedMaterialPageRoute.__proto__.new.call(this, {settings: page});
if (!dart.test(this.opaque)) dart.assertFailed(null, I[0], 189, 12, "opaque");
}).prototype = _PageBasedMaterialPageRoute.prototype;
dart.addTypeTests(_PageBasedMaterialPageRoute);
_PageBasedMaterialPageRoute.prototype[_is__PageBasedMaterialPageRoute_default] = true;
dart.addTypeCaches(_PageBasedMaterialPageRoute);
dart.setMethodSignature(_PageBasedMaterialPageRoute, () => ({
__proto__: dart.getMethods(_PageBasedMaterialPageRoute.__proto__),
buildContent: dart.fnType(framework.Widget, [framework.BuildContext])
}));
dart.setGetterSignature(_PageBasedMaterialPageRoute, () => ({
__proto__: dart.getGetters(_PageBasedMaterialPageRoute.__proto__),
[_page]: page.MaterialPage$(T),
maintainState: core.bool,
fullscreenDialog: core.bool
}));
dart.setLibraryUri(_PageBasedMaterialPageRoute, I[1]);
return _PageBasedMaterialPageRoute;
});
page._PageBasedMaterialPageRoute = page._PageBasedMaterialPageRoute$();
dart.addTypeTests(page._PageBasedMaterialPageRoute, _is__PageBasedMaterialPageRoute_default);
dart.trackLibraries("packages/flutter/src/material/page.dart", {
"package:flutter/src/material/page.dart": page
}, {
}, '{"version":3,"sourceRoot":"","sources":["page.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFqC;MAAiC;;AAGzC;MAAI;;AAGH;MAAI;;YAGc;AAE5C,cAAkB,AAChB,sCADM,SAAS,gBAAqC,AAAU,SAAD,sBAC/C,uCAAV,SAAS,gBAAsC,AAAU,SAAD;MAChE;gBAIe,SACK,WACA;YAFL;YACK;YACA;AAEL,qBAAS,kBAAa,OAAO;AAC1C,uBAAO,AAQN;AAPC,cAAI,AAAO,MAAD;AAIP,YAHD,WAAM,4BAAY,AAChB,sCAA0B,AAAS,sBAAK,wBACxC;;AAGJ,gBAAO;;AAET,cAAO,uCACQ,0BACO,aACb,MAAM;MAEjB;uBAGqC,SAA2B,WAA6B,oBAA2B;YAAnF;YAA2B;YAA6B;YAA2B;AAC3F,oBAAc,AAAY,gBAAT,OAAO;AACnD,cAAO,AAAM,MAAD,qBAAqB,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,KAAK;MACtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA7EoB;;;;;;MAMT;;;;;;mBAHsB;;;AAAY,aAAQ,OAAO;cAAf,AAAO;MAAS;;AAMpC,cAAuC,UAA9B,oBAAW,eAAG,AAAS,sBAAK;MAAE;;;UArBhD;;UACC;UACV;;UACA;;MAHS;MAET;YAEK,AAAQ,OAAD;YACP,AAAc,aAAD;YACb,AAAiB,gBAAD;AACvB,4DAAgB,QAAQ,oBAAoB,gBAAgB;AAC/D,qBAAO;IACT;;;;;;;;;;;;;;;;;;;;;;;;;MAsHa;;;;;;MAGF;;;;;;MAGA;;;;;;;YAGuB;AAChC,cAAO,mDAAqC;MAC9C;;;UAvBgB;;UACT;;UACA;;UACK;UACF;UACA;MALM;MACT;MACA;YAIK,AAAM,KAAD;YACL,AAAc,aAAD;YACb,AAAiB,gBAAD;AACvB,kDAAW,GAAG,QAAQ,IAAI,aAAa;;IAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BzB,cAAS,sBAAT;MAA2B;;YAGvB;AAC/B,cAAO,AAAM;MACf;;AAG0B,cAAA,AAAM;MAAa;;AAGhB,cAAA,AAAM;MAAgB;;AAG1B,cAAoC,UAA3B,oBAAW,eAAG,AAAM,oBAAK;MAAE;;;UApBlC;;YACf,AAAK,IAAD;AACX,sEAAgB,IAAI;AACvB,qBAAO;IACT","file":"../../../../../../../../../../../packages/flutter/src/material/page.dart.lib.js"}');
// Exports:
return {
src__material__page: page
};
}));
//# sourceMappingURL=page.dart.lib.js.map
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/flutter/src/widgets/icon_theme.dart', 'packages/flutter/src/rendering/paragraph.dart', 'packages/flutter/src/painting/placeholder_span.dart', 'packages/flutter/src/painting/strut_style.dart', 'packages/vector_math/vector_math_64.dart', 'packages/flutter/src/painting/alignment.dart', 'packages/flutter/src/widgets/icon_data.dart', 'packages/flutter/src/foundation/debug.dart', 'packages/flutter/src/painting/colors.dart'], (function load__packages__flutter__src__widgets__icon_dart(dart_sdk, packages__flutter__src__widgets__widget_span$46dart, packages__flutter__src__widgets__icon_theme$46dart, packages__flutter__src__rendering__paragraph$46dart, packages__flutter__src__painting__placeholder_span$46dart, packages__flutter__src__painting__strut_style$46dart, packages__vector_math__vector_math_64$46dart, packages__flutter__src__painting__alignment$46dart, packages__flutter__src__widgets__icon_data$46dart, packages__flutter__src__foundation__debug$46dart, packages__flutter__src__painting__colors$46dart) {
'use strict';
const core = dart_sdk.core;
const ui = dart_sdk.ui;
const _internal = dart_sdk._internal;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const debug = packages__flutter__src__widgets__widget_span$46dart.src__widgets__debug;
const basic = packages__flutter__src__widgets__widget_span$46dart.src__widgets__basic;
const widget_inspector = packages__flutter__src__widgets__widget_span$46dart.src__widgets__widget_inspector;
const framework = packages__flutter__src__widgets__widget_span$46dart.src__widgets__framework;
const icon_theme = packages__flutter__src__widgets__icon_theme$46dart.src__widgets__icon_theme;
const paragraph = packages__flutter__src__rendering__paragraph$46dart.src__rendering__paragraph;
const text_span = packages__flutter__src__painting__placeholder_span$46dart.src__painting__text_span;
const text_style = packages__flutter__src__painting__strut_style$46dart.src__painting__text_style;
const vector_math_64 = packages__vector_math__vector_math_64$46dart.vector_math_64;
const alignment = packages__flutter__src__painting__alignment$46dart.src__painting__alignment;
const icon_data = packages__flutter__src__widgets__icon_data$46dart.src__widgets__icon_data;
const diagnostics = packages__flutter__src__foundation__debug$46dart.src__foundation__diagnostics;
const colors = packages__flutter__src__painting__colors$46dart.src__painting__colors;
var icon$ = Object.create(dart.library);
dart._checkModuleNullSafetyMode(false);
var T = {
_LocationL: () => (T._LocationL = dart.constFn(dart.legacy(widget_inspector._Location)))()
};
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 C2() {
return C[2] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "width",
[_Location_column]: 25,
[_Location_line]: 164,
[_Location_file]: null
});
},
get C3() {
return C[3] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "height",
[_Location_column]: 42,
[_Location_line]: 164,
[_Location_file]: null
});
},
get C1() {
return C[1] = dart.constList([C[2] || CT.C2, C[3] || CT.C3], T._LocationL());
},
get C0() {
return C[0] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[1] || CT.C1,
[_Location_name]: null,
[_Location_column]: 16,
[_Location_line]: 164,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
},
get C6() {
return C[6] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "label",
[_Location_column]: 9,
[_Location_line]: 163,
[_Location_file]: null
});
},
get C7() {
return C[7] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "child",
[_Location_column]: 9,
[_Location_line]: 164,
[_Location_file]: null
});
},
get C5() {
return C[5] = dart.constList([C[6] || CT.C6, C[7] || CT.C7], T._LocationL());
},
get C4() {
return C[4] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[5] || CT.C5,
[_Location_name]: null,
[_Location_column]: 14,
[_Location_line]: 162,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
},
get C10() {
return C[10] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "overflow",
[_Location_column]: 7,
[_Location_line]: 174,
[_Location_file]: null
});
},
get C11() {
return C[11] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "textDirection",
[_Location_column]: 7,
[_Location_line]: 175,
[_Location_file]: null
});
},
get C12() {
return C[12] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "text",
[_Location_column]: 7,
[_Location_line]: 176,
[_Location_file]: null
});
},
get C9() {
return C[9] = dart.constList([C[10] || CT.C10, C[11] || CT.C11, C[12] || CT.C12], T._LocationL());
},
get C8() {
return C[8] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[9] || CT.C9,
[_Location_name]: null,
[_Location_column]: 25,
[_Location_line]: 173,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
},
get C15() {
return C[15] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "transform",
[_Location_column]: 13,
[_Location_line]: 192,
[_Location_file]: null
});
},
get C16() {
return C[16] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "alignment",
[_Location_column]: 13,
[_Location_line]: 193,
[_Location_file]: null
});
},
get C17() {
return C[17] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "transformHitTests",
[_Location_column]: 13,
[_Location_line]: 194,
[_Location_file]: null
});
},
get C18() {
return C[18] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "child",
[_Location_column]: 13,
[_Location_line]: 195,
[_Location_file]: null
});
},
get C14() {
return C[14] = dart.constList([C[15] || CT.C15, C[16] || CT.C16, C[17] || CT.C17, C[18] || CT.C18], T._LocationL());
},
get C13() {
return C[13] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[14] || CT.C14,
[_Location_name]: null,
[_Location_column]: 24,
[_Location_line]: 191,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
},
get C19() {
return C[19] = dart.const({
__proto__: ui.TextDirection.prototype,
[_name]: "TextDirection.rtl",
index: 0
});
},
get C20() {
return C[20] = dart.const({
__proto__: ui.TextDirection.prototype,
[_name]: "TextDirection.ltr",
index: 1
});
},
get C23() {
return C[23] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "child",
[_Location_column]: 13,
[_Location_line]: 210,
[_Location_file]: null
});
},
get C22() {
return C[22] = dart.constList([C[23] || CT.C23], T._LocationL());
},
get C21() {
return C[21] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[22] || CT.C22,
[_Location_name]: null,
[_Location_column]: 18,
[_Location_line]: 209,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
},
get C26() {
return C[26] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "width",
[_Location_column]: 11,
[_Location_line]: 207,
[_Location_file]: null
});
},
get C27() {
return C[27] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "height",
[_Location_column]: 11,
[_Location_line]: 208,
[_Location_file]: null
});
},
get C28() {
return C[28] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "child",
[_Location_column]: 11,
[_Location_line]: 209,
[_Location_file]: null
});
},
get C25() {
return C[25] = dart.constList([C[26] || CT.C26, C[27] || CT.C27, C[28] || CT.C28], T._LocationL());
},
get C24() {
return C[24] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[25] || CT.C25,
[_Location_name]: null,
[_Location_column]: 16,
[_Location_line]: 206,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
},
get C31() {
return C[31] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "child",
[_Location_column]: 9,
[_Location_line]: 206,
[_Location_file]: null
});
},
get C30() {
return C[30] = dart.constList([C[31] || CT.C31], T._LocationL());
},
get C29() {
return C[29] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[30] || CT.C30,
[_Location_name]: null,
[_Location_column]: 14,
[_Location_line]: 205,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
},
get C34() {
return C[34] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "label",
[_Location_column]: 7,
[_Location_line]: 204,
[_Location_file]: null
});
},
get C35() {
return C[35] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: null,
[_Location_name]: "child",
[_Location_column]: 7,
[_Location_line]: 205,
[_Location_file]: null
});
},
get C33() {
return C[33] = dart.constList([C[34] || CT.C34, C[35] || CT.C35], T._LocationL());
},
get C32() {
return C[32] = dart.const({
__proto__: widget_inspector._Location.prototype,
[_Location_parameterLocations]: C[33] || CT.C33,
[_Location_name]: null,
[_Location_column]: 12,
[_Location_line]: 203,
[_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart"
});
}
}, false);
var C = Array(36).fill(void 0);
var I = [
"file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/widgets/icon.dart",
"package:flutter/src/widgets/icon.dart"
];
var icon$0 = dart.privateName(icon$, "Icon.icon");
var size$ = dart.privateName(icon$, "Icon.size");
var color$ = dart.privateName(icon$, "Icon.color");
var semanticLabel$ = dart.privateName(icon$, "Icon.semanticLabel");
var textDirection$ = dart.privateName(icon$, "Icon.textDirection");
var _Location_parameterLocations = dart.privateName(widget_inspector, "_Location.parameterLocations");
var _Location_name = dart.privateName(widget_inspector, "_Location.name");
var _Location_column = dart.privateName(widget_inspector, "_Location.column");
var _Location_line = dart.privateName(widget_inspector, "_Location.line");
var _Location_file = dart.privateName(widget_inspector, "_Location.file");
var _name = dart.privateName(ui, "_name");
icon$.Icon = class Icon extends framework.StatelessWidget {
get icon() {
return this[icon$0];
}
set icon(value) {
super.icon = value;
}
get size() {
return this[size$];
}
set size(value) {
super.size = value;
}
get color() {
return this[color$];
}
set color(value) {
super.color = value;
}
get semanticLabel() {
return this[semanticLabel$];
}
set semanticLabel(value) {
super.semanticLabel = value;
}
get textDirection() {
return this[textDirection$];
}
set textDirection(value) {
super.textDirection = value;
}
build(context) {
let t0, t0$, t0$0, t0$1, t0$2;
if (context == null) dart.nullFailed(I[0], 153, 29, "context");
if (!(this.textDirection != null || dart.test(debug.debugCheckHasDirectionality(context)))) dart.assertFailed(null, I[0], 154, 12, "this.textDirection != null || debugCheckHasDirectionality(context)");
let textDirection = (t0 = this.textDirection, t0 == null ? basic.Directionality.of(context) : t0);
let iconTheme = icon_theme.IconTheme.of(context);
let iconSize = (t0$ = this.size, t0$ == null ? iconTheme.size : t0$);
if (this.icon == null) {
return new basic.Semantics.new({label: this.semanticLabel, child: new basic.SizedBox.new({width: iconSize, height: iconSize, $creationLocationd_0dea112b090073317d4: C[0] || CT.C0}), $creationLocationd_0dea112b090073317d4: C[4] || CT.C4});
}
let iconOpacity = (t0$0 = iconTheme.opacity, t0$0 == null ? 1.0 : t0$0);
let iconColor = (t0$1 = this.color, t0$1 == null ? dart.nullCheck(iconTheme.color) : t0$1);
if (iconOpacity !== 1.0) iconColor = iconColor.withOpacity(dart.notNull(iconColor.opacity) * dart.notNull(iconOpacity));
let iconWidget = new basic.RichText.new({overflow: paragraph.TextOverflow.visible, textDirection: textDirection, text: new text_span.TextSpan.new({text: core.String.fromCharCode(dart.nullCheck(this.icon).codePoint), style: new text_style.TextStyle.new({inherit: false, color: iconColor, fontSize: iconSize, fontFamily: dart.nullCheck(this.icon).fontFamily, package: dart.nullCheck(this.icon).fontPackage})}), $creationLocationd_0dea112b090073317d4: C[8] || CT.C8});
if (dart.test(dart.nullCheck(this.icon).matchTextDirection)) {
switch (textDirection) {
case C[19] || CT.C19:
{
iconWidget = new basic.Transform.new({transform: (t0$2 = vector_math_64.Matrix4.identity(), (() => {
t0$2.scale(-1.0, 1.0, 1.0);
return t0$2;
})()), alignment: alignment.Alignment.center, transformHitTests: false, child: iconWidget, $creationLocationd_0dea112b090073317d4: C[13] || CT.C13});
break;
}
case C[20] || CT.C20:
{
break;
}
default:
{
dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type."));
}
}
}
return new basic.Semantics.new({label: this.semanticLabel, child: new basic.ExcludeSemantics.new({child: new basic.SizedBox.new({width: iconSize, height: iconSize, child: new basic.Center.new({child: iconWidget, $creationLocationd_0dea112b090073317d4: C[21] || CT.C21}), $creationLocationd_0dea112b090073317d4: C[24] || CT.C24}), $creationLocationd_0dea112b090073317d4: C[29] || CT.C29}), $creationLocationd_0dea112b090073317d4: C[32] || CT.C32});
}
debugFillProperties(properties) {
if (properties == null) dart.nullFailed(I[0], 218, 56, "properties");
super.debugFillProperties(properties);
properties.add(new icon_data.IconDataProperty.new("icon", this.icon, {ifNull: "<empty>", showName: false}));
properties.add(new diagnostics.DoubleProperty.new("size", this.size, {defaultValue: null}));
properties.add(new colors.ColorProperty.new("color", this.color, {defaultValue: null}));
}
};
(icon$.Icon.new = function(icon, opts) {
let key = opts && 'key' in opts ? opts.key : null;
let size = opts && 'size' in opts ? opts.size : null;
let color = opts && 'color' in opts ? opts.color : null;
let semanticLabel = opts && 'semanticLabel' in opts ? opts.semanticLabel : null;
let textDirection = opts && 'textDirection' in opts ? opts.textDirection : null;
let $36creationLocationd_0dea112b090073317d4 = opts && '$creationLocationd_0dea112b090073317d4' in opts ? opts.$creationLocationd_0dea112b090073317d4 : null;
this[icon$0] = icon;
this[size$] = size;
this[color$] = color;
this[semanticLabel$] = semanticLabel;
this[textDirection$] = textDirection;
icon$.Icon.__proto__.new.call(this, {key: key, $creationLocationd_0dea112b090073317d4: $36creationLocationd_0dea112b090073317d4});
;
}).prototype = icon$.Icon.prototype;
dart.addTypeTests(icon$.Icon);
dart.addTypeCaches(icon$.Icon);
dart.setMethodSignature(icon$.Icon, () => ({
__proto__: dart.getMethods(icon$.Icon.__proto__),
build: dart.fnType(framework.Widget, [framework.BuildContext])
}));
dart.setLibraryUri(icon$.Icon, I[1]);
dart.setFieldSignature(icon$.Icon, () => ({
__proto__: dart.getFields(icon$.Icon.__proto__),
icon: dart.finalFieldType(dart.nullable(icon_data.IconData)),
size: dart.finalFieldType(dart.nullable(core.double)),
color: dart.finalFieldType(dart.nullable(ui.Color)),
semanticLabel: dart.finalFieldType(dart.nullable(core.String)),
textDirection: dart.finalFieldType(dart.nullable(ui.TextDirection))
}));
dart.trackLibraries("packages/flutter/src/widgets/icon.dart", {
"package:flutter/src/widgets/icon.dart": icon$
}, {
}, '{"version":3,"sourceRoot":"","sources":["icon.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkFkB;;;;;;IAcF;;;;;;IA6BD;;;;;;IASC;;;;;;IAeO;;;;;;UAGK;;;AACxB,YAAY,AAAc,AAAQ,wCAAG,kCAA4B,OAAO;AACpD,2BAAmC,yBAAd,aAAgC,wBAAG,OAAO;AAE/D,sBAAsB,wBAAG,OAAO;AAEtC,sBAAgB,iBAAL,cAAQ,AAAU,SAAD;AAE1C,UAAI,AAAK;AACP,cAAO,iCACE,2BACA,+BAAgB,QAAQ,UAAU,QAAQ;;AAIxC,yBAAgC,OAAlB,AAAU,SAAD,UAAC,eAAW;AAC1C,uBAAkB,mBAAN,eAAwB,eAAf,AAAU,SAAD;AACpC,UAAI,AAAY,WAAD,KAAI,KACjB,AAAkE,YAAtD,AAAU,SAAD,aAA+B,aAAlB,AAAU,SAAD,yBAAW,WAAW;AAE5D,uBAAa,kCACK,+CACR,aAAa,QACtB,kCACS,yBAAiB,AAAE,eAAN,8BACnB,uCACI,cACF,SAAS,YACN,QAAQ,cACF,AAAE,eAAN,gCACC,AAAE,eAAN;AAKf,oBAAQ,AAAE,eAAN;AACF,gBAAQ,aAAa;;;AAOhB,YALD,aAAa,+EACQ;AAAY,2BAAM,CAAC,KAAK,KAAK;;gCAC3B,+CACF,cACZ,UAAU;AAEnB;;;;AAEA;;;;AAVJ;;;;AAcF,YAAO,iCACE,2BACA,uCACE,+BACE,QAAQ,UACP,QAAQ,SACT,6BACE,UAAU;IAK3B;;UAGqD;AACd,MAA/B,0BAAoB,UAAU;AAC8C,MAAlF,AAAW,UAAD,KAAK,mCAAiB,QAAQ,oBAAc,qBAAqB;AACX,MAAhE,AAAW,UAAD,KAAK,mCAAe,QAAQ,0BAAoB;AACO,MAAjE,AAAW,UAAD,KAAK,6BAAc,SAAS,2BAAqB;IAC7D;;6BAxJO;QACA;QACA;QACA;QACA;QACA;;IALA;IAEA;IACA;IACA;IACA;AACF,8CAAW,GAAG;;EAAC","file":"../../../../../../../../../../../packages/flutter/src/widgets/icon.dart.lib.js"}');
// Exports:
return {
src__widgets__icon: icon$
};
}));
//# sourceMappingURL=icon.dart.lib.js.map
{
"configVersion": 2,
"packages": [
{
"name": "apex_flutter_sdk",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/apex_flutter_sdk-1.1.1+1",
"packageUri": "lib/",
"languageVersion": "2.7"
},
{
"name": "archive",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/archive-2.0.13",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "args",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/args-1.6.0",
"packageUri": "lib/",
"languageVersion": "2.3"
},
{
"name": "async",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.5.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "boolean_selector",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "characters",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "charcode",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "circlegraph",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/circlegraph-0.0.6",
"packageUri": "lib/",
"languageVersion": "2.7"
},
{
"name": "clock",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "collection",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "convert",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1",
"packageUri": "lib/",
"languageVersion": "1.17"
},
{
"name": "crypto",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.5",
"packageUri": "lib/",
"languageVersion": "2.3"
},
{
"name": "cupertino_icons",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.2",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "enhanced_future_builder",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/enhanced_future_builder-1.0.3",
"packageUri": "lib/",
"languageVersion": "2.4"
},
{
"name": "fake_async",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "ffi",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-1.0.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "file",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/file-6.0.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter_driver",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter_driver",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter_spinkit",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_spinkit-5.0.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter_test",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter_test",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "fuchsia_remote_debug_protocol",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/fuchsia_remote_debug_protocol",
"packageUri": "lib/",
"languageVersion": "2.2"
},
{
"name": "graphview",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/graphview-0.6.7",
"packageUri": "lib/",
"languageVersion": "2.7"
},
{
"name": "http",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.2",
"packageUri": "lib/",
"languageVersion": "2.4"
},
{
"name": "http_parser",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.4",
"packageUri": "lib/",
"languageVersion": "2.3"
},
{
"name": "integration_test",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/integration_test",
"packageUri": "lib/",
"languageVersion": "2.10"
},
{
"name": "localstorage",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/localstorage-3.0.6+9",
"packageUri": "lib/",
"languageVersion": "2.2"
},
{
"name": "logger",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/logger-0.9.4",
"packageUri": "lib/",
"languageVersion": "2.2"
},
{
"name": "matcher",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.10",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "meta",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path_provider",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27",
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "path_provider_linux",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2",
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "path_provider_macos",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+8",
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "path_provider_platform_interface",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.4",
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "path_provider_windows",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.5",
"packageUri": "lib/",
"languageVersion": "2.11"
},
{
"name": "pedantic",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/pedantic-1.11.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "platform",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "plugin_platform_interface",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-1.0.3",
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "process",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/process-4.0.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "shamsi_date",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/shamsi_date-0.8.1",
"packageUri": "lib/",
"languageVersion": "2.1"
},
{
"name": "sky_engine",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/bin/cache/pkg/sky_engine",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "source_span",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "stack_trace",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "stream_channel",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "string_scanner",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "sync_http",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/sync_http-0.2.0",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "term_glyph",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "test_api",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.19",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "typed_data",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "vector_math",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "vm_service",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/vm_service-5.5.0",
"packageUri": "lib/",
"languageVersion": "2.6"
},
{
"name": "webdriver",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/webdriver-2.1.2",
"packageUri": "lib/",
"languageVersion": "2.0"
},
{
"name": "win32",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.0.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "xdg_directories",
"rootUri": "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/xdg_directories-0.1.2",
"packageUri": "lib/",
"languageVersion": "2.3"
},
{
"name": "dashboard",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "2.7"
}
],
"generated": "2021-03-15T13:10:54.177879Z",
"generator": "pub",
"generatorVersion": "2.12.0"
}
2.0.1
\ No newline at end of file
FROM nginx:latest
EXPOSE 80
COPY ./src/dashboard/build/web/ /usr/share/nginx/html/
\ No newline at end of file
sdk.dir=C:\\Users\\Luca\\AppData\\Local\\Android\\sdk
flutter.sdk=C:\\Users\\Luca\\Documents\\flutter\\flutter_windows_1.22.5-stable\\flutter
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment