From fed92c157b2b1dbde417dd01530b70436fdf7d59 Mon Sep 17 00:00:00 2001 From: Plague Fox Date: Thu, 2 Nov 2023 19:01:32 +0400 Subject: [PATCH] Do not get dependencies in example directory --- .github/workflows/checkout.yml | 4 +-- lib/src/subscription/subscription_state.dart | 27 +++++++------------- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/.github/workflows/checkout.yml b/.github/workflows/checkout.yml index 883528b..6ede96e 100644 --- a/.github/workflows/checkout.yml +++ b/.github/workflows/checkout.yml @@ -37,7 +37,7 @@ jobs: run: working-directory: ./ container: - image: dart:beta + image: dart:stable timeout-minutes: 10 steps: - name: 🚂 Get latest code @@ -58,7 +58,7 @@ jobs: - name: 👷 Install Dependencies timeout-minutes: 1 run: | - dart pub get + dart pub get --no-example - name: 🔎 Check format timeout-minutes: 1 diff --git a/lib/src/subscription/subscription_state.dart b/lib/src/subscription/subscription_state.dart index b3b7f1e..f059652 100644 --- a/lib/src/subscription/subscription_state.dart +++ b/lib/src/subscription/subscription_state.dart @@ -60,12 +60,9 @@ final class SpinifySubscriptionState$Unsubscribed required this.code, required this.reason, DateTime? timestamp, - ({fixnum.Int64 offset, String epoch})? since, - bool recoverable = false, - }) : super( - timestamp: timestamp ?? DateTime.now(), - since: since, - recoverable: recoverable); + super.since, + super.recoverable = false, + }) : super(timestamp: timestamp ?? DateTime.now()); @override String get type => 'unsubscribed'; @@ -126,12 +123,9 @@ final class SpinifySubscriptionState$Subscribing /// {@nodoc} SpinifySubscriptionState$Subscribing({ DateTime? timestamp, - ({fixnum.Int64 offset, String epoch})? since, - bool recoverable = false, - }) : super( - timestamp: timestamp ?? DateTime.now(), - since: since, - recoverable: recoverable); + super.since, + super.recoverable = false, + }) : super(timestamp: timestamp ?? DateTime.now()); @override String get type => 'subscribing'; @@ -179,13 +173,10 @@ final class SpinifySubscriptionState$Subscribed /// {@nodoc} SpinifySubscriptionState$Subscribed({ DateTime? timestamp, - ({fixnum.Int64 offset, String epoch})? since, - bool recoverable = false, + super.since, + super.recoverable = false, this.ttl, - }) : super( - timestamp: timestamp ?? DateTime.now(), - since: since, - recoverable: recoverable); + }) : super(timestamp: timestamp ?? DateTime.now()); @override String get type => 'subscribed';