-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmodels.dart
62 lines (56 loc) · 1.02 KB
/
models.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import 'package:flutter/material.dart';
class BlobData {
int? growth;
double? size;
int? edges;
BlobPoints? points;
String? id;
Path? path;
String? svgPath;
BlobCurves? curves;
BlobData({
this.growth,
this.size,
this.edges,
this.points,
this.id,
this.path,
this.svgPath,
this.curves,
});
}
class BlobCurves {
final Offset start;
final List<List<double>> curves;
final List<Offset> breakpoints;
BlobCurves(this.start, this.curves, this.breakpoints);
}
enum BlobFillType { fill, stroke }
class BlobStyles {
Color? color;
Shader? gradient;
int? strokeWidth;
BlobFillType? fillType;
BlendMode? blendMode;
BlobStyles({
this.color,
this.gradient,
this.fillType,
this.strokeWidth,
this.blendMode,
});
}
class BlobPoints {
List<Offset>? originPoints;
List<Offset>? destPoints;
Offset? center;
double? innerRad;
String? id;
BlobPoints({
this.originPoints,
this.destPoints,
this.center,
this.id,
this.innerRad,
});
}