Skip to content

Commit c698fbd

Browse files
committed
remove usages of num
1 parent d17ebd1 commit c698fbd

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

lib/src/clipper/clipper.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class BlobClipper extends CustomClipper<Path> {
99
final int minGrowth;
1010
BlobClipper({
1111
this.id,
12-
this.edgesCount = BlobConfig.edgesCount as int,
13-
this.minGrowth = BlobConfig.minGrowth as int,
12+
this.edgesCount = BlobConfig.edgesCount,
13+
this.minGrowth = BlobConfig.minGrowth,
1414
});
1515

1616
@override

lib/src/config.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import 'package:flutter/material.dart';
44
class BlobConfig {
55
static const Color color = Color(0xff3c40c6);
66
static const BlobFillType fillType = BlobFillType.fill;
7-
static const num edgesCount = 6;
8-
static const num minGrowth = 6;
9-
static const num animDurationMs = 500;
7+
static const int edgesCount = 6;
8+
static const int minGrowth = 6;
9+
static const int animDurationMs = 500;
1010
static const int strokeWidth = 3;
1111
}

lib/src/widgets/blob.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class Blob extends StatefulWidget {
2525

2626
Blob.random({
2727
required this.size,
28-
this.edgesCount = BlobConfig.edgesCount as int?,
29-
this.minGrowth = BlobConfig.minGrowth as int?,
28+
this.edgesCount = BlobConfig.edgesCount,
29+
this.minGrowth = BlobConfig.minGrowth,
3030
this.debug = false,
3131
this.styles,
3232
this.controller,
@@ -37,12 +37,12 @@ class Blob extends StatefulWidget {
3737
isAnimated = false;
3838
Blob.animatedRandom({
3939
required this.size,
40-
this.edgesCount = BlobConfig.edgesCount as int?,
41-
this.minGrowth = BlobConfig.minGrowth as int?,
40+
this.edgesCount = BlobConfig.edgesCount,
41+
this.minGrowth = BlobConfig.minGrowth,
4242
this.debug = false,
4343
this.styles,
4444
this.duration = const Duration(
45-
milliseconds: BlobConfig.animDurationMs as int,
45+
milliseconds: BlobConfig.animDurationMs,
4646
),
4747
this.loop = false,
4848
this.controller,
@@ -69,7 +69,7 @@ class Blob extends StatefulWidget {
6969
this.debug = false,
7070
this.styles,
7171
this.duration = const Duration(
72-
milliseconds: BlobConfig.animDurationMs as int,
72+
milliseconds: BlobConfig.animDurationMs,
7373
),
7474
this.loop = false,
7575
this.controller,

0 commit comments

Comments
 (0)