chore(app): lint cleanups (const constructors, local function)
This commit is contained in:
1 parent
9d67679fa8
commit
bbc83ea425
7 files changed
+12
-12
No files matched your search
@@ -182,7 +182,7 @@ class _LightningPainter extends CustomPainter {
|
||||
|
||||
@override
|
||||
void paint(Canvas canvas, Size size) {
|
||||
final toScreen = (Offset p) => Offset(p.dx * size.width, p.dy * size.height);
|
||||
Offset toScreen(Offset p) => Offset(p.dx * size.width, p.dy * size.height);
|
||||
final scaledMain = bolt.mainPath.map(toScreen).toList();
|
||||
final scaledBranches = bolt.branches
|
||||
.map((b) => b.map(toScreen).toList())
|
||||
|
||||
Reference in new issue
Block a user