From 8a892e60af7282f220f97390e5c69b9acc13747c Mon Sep 17 00:00:00 2001 From: Gabriel Terwesten Date: Wed, 3 Mar 2021 23:07:43 +0100 Subject: [PATCH] style: fix formatting --- example/lib/main.dart | 2 +- lib/src/photos.dart | 4 +--- lib/src/search.dart | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index c8d9c4c..adbdaa0 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -20,7 +20,7 @@ void main(List args) async { settings: ClientSettings(credentials: appCredentials), ); - // Fetch 5 random photos by calling `goAndGet` to execute the [Request] + // Fetch 5 random photos by calling `goAndGet` to execute the [Request] // returned from `random` and throw an exception if the [Response] is not ok. final photos = await client.photos.random(count: 5).goAndGet(); diff --git a/lib/src/photos.dart b/lib/src/photos.dart index 2b0e229..71606d8 100644 --- a/lib/src/photos.dart +++ b/lib/src/photos.dart @@ -9,9 +9,7 @@ import 'utils.dart'; /// See: [Unsplash docs](https://unsplash.com/documentation#photos) class Photos { /// Creates a new instance which belongs to [client]. - Photos(this.client) - : - baseUrl = client.baseUrl.resolve('photos/'); + Photos(this.client) : baseUrl = client.baseUrl.resolve('photos/'); /// The parent [UnsplashClient]. final UnsplashClient client; diff --git a/lib/src/search.dart b/lib/src/search.dart index 5cf4e72..a7cdd61 100644 --- a/lib/src/search.dart +++ b/lib/src/search.dart @@ -10,9 +10,7 @@ import 'utils.dart'; /// See: [Unsplash docs](https://unsplash.com/documentation#search) class Search { /// Creates a new instance which belongs to [client]. - Search(this.client) - : - baseUrl = client.baseUrl.resolve('search/'); + Search(this.client) : baseUrl = client.baseUrl.resolve('search/'); /// The parent [UnsplashClient]. final UnsplashClient client;