From 31b5244e7062b34249dea5a1720fd665087a283e Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Thu, 1 Aug 2024 00:01:30 +0100 Subject: [PATCH] feat: add named constants to HorizontalSpacing/VerticalSpacing --- lib/src/common/structs/horizontal_spacing.dart | 2 ++ lib/src/common/structs/vertical_spacing.dart | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/src/common/structs/horizontal_spacing.dart b/lib/src/common/structs/horizontal_spacing.dart index 3ed47d57..a330e968 100644 --- a/lib/src/common/structs/horizontal_spacing.dart +++ b/lib/src/common/structs/horizontal_spacing.dart @@ -9,4 +9,6 @@ class HorizontalSpacing { final double left; final double right; + + static const zero = HorizontalSpacing(0, 0); } diff --git a/lib/src/common/structs/vertical_spacing.dart b/lib/src/common/structs/vertical_spacing.dart index cc8724a2..cf46ef4c 100644 --- a/lib/src/common/structs/vertical_spacing.dart +++ b/lib/src/common/structs/vertical_spacing.dart @@ -9,4 +9,6 @@ class VerticalSpacing { final double top; final double bottom; + + static const zero = VerticalSpacing(0, 0); }