From 53a22f1f1de320eb12ee014303f40a2cd4fc65b6 Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Mon, 7 Mar 2022 14:32:36 +0100 Subject: [PATCH] fix: added assert to maths --- packages/maths/lib/src/maths.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/maths/lib/src/maths.dart b/packages/maths/lib/src/maths.dart index e37f8132..d0912418 100644 --- a/packages/maths/lib/src/maths.dart +++ b/packages/maths/lib/src/maths.dart @@ -33,6 +33,7 @@ List calculateBezierCurve({ required List controlPoints, double step = 0.001, }) { + assert(0 <= step && step <= 1, 'Range 0<=step<=1'); assert( controlPoints.length >= 2, 'At least 2 control points to create a bezier curve',