From ebb80d0019b50a13839adb0f02dc1bc92b489587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Hlatk=C3=BD?= Date: Sun, 17 Nov 2024 21:43:58 +0100 Subject: [PATCH] Cleanup --- lib/bloc/present_signed_document_cubit.dart | 10 +++++----- lib/bloc/present_signed_document_state.dart | 7 ++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/bloc/present_signed_document_cubit.dart b/lib/bloc/present_signed_document_cubit.dart index 06d4160..a394a9a 100644 --- a/lib/bloc/present_signed_document_cubit.dart +++ b/lib/bloc/present_signed_document_cubit.dart @@ -32,11 +32,11 @@ class PresentSignedDocumentCubit extends Cubit { final SignDocumentResponseBody signedDocument; - PresentSignedDocumentCubit( - {required AppService appService, - @factoryParam required this.signedDocument, - @factoryParam required DocumentSigningType signingType}) - : _appService = appService, + PresentSignedDocumentCubit({ + required AppService appService, + @factoryParam required this.signedDocument, + @factoryParam required DocumentSigningType signingType, + }) : _appService = appService, super( signingType == DocumentSigningType.local ? const PresentSignedDocumentInitialState() diff --git a/lib/bloc/present_signed_document_state.dart b/lib/bloc/present_signed_document_state.dart index b3cdfc7..3a7b12c 100644 --- a/lib/bloc/present_signed_document_state.dart +++ b/lib/bloc/present_signed_document_state.dart @@ -2,6 +2,8 @@ import 'dart:io' show File; import 'package:flutter/foundation.dart'; +import 'present_signed_document_cubit.dart'; + /// State for [PresentSignedDocumentCubit]. @immutable sealed class PresentSignedDocumentState { @@ -59,9 +61,4 @@ class PresentSignedLocalDocumentSuccessState class PresentSignedRemoteDocumentSuccessState extends PresentSignedDocumentState { const PresentSignedRemoteDocumentSuccessState(); - - @override - String toString() { - return "$runtimeType()"; - } }