Skip to content

Commit

Permalink
Make flutter format
Browse files Browse the repository at this point in the history
  • Loading branch information
Frezyx committed Jun 25, 2024
1 parent 8183b32 commit 56e1883
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
25 changes: 15 additions & 10 deletions packages/talker_bloc_logger/lib/bloc_logs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ class BlocEventLog extends TalkerLog {
String get key => TalkerLogType.blocEvent.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand Down Expand Up @@ -49,8 +50,9 @@ class BlocStateLog extends TalkerLog {
String get key => TalkerLogType.blocTransition.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand Down Expand Up @@ -82,8 +84,9 @@ class BlocChangeLog extends TalkerLog {
String get key => TalkerLogType.blocTransition.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand Down Expand Up @@ -111,8 +114,9 @@ class BlocCreateLog extends TalkerLog {
String? get key => TalkerLogType.blocCreate.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand All @@ -136,8 +140,9 @@ class BlocCloseLog extends TalkerLog {
String? get key => TalkerLogType.blocClose.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand Down
15 changes: 9 additions & 6 deletions packages/talker_dio_logger/lib/dio_logs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ class DioRequestLog extends TalkerLog {
String get key => TalkerLogType.httpRequest.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
var msg = '[$title] [${requestOptions.method}] $message';

final data = requestOptions.data;
Expand Down Expand Up @@ -63,8 +64,9 @@ class DioResponseLog extends TalkerLog {
String get key => TalkerLogType.httpResponse.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
var msg = '[$title] [${response.requestOptions.method}] $message';

final responseMessage = response.statusMessage;
Expand Down Expand Up @@ -110,8 +112,9 @@ class DioErrorLog extends TalkerLog {
String get key => TalkerLogType.httpError.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
var msg = '[$title] [${dioException.requestOptions.method}] $message';

final responseMessage = dioException.message;
Expand Down
15 changes: 9 additions & 6 deletions packages/talker_riverpod_logger/lib/riverpod_logs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ class RiverpodUpdateLog extends TalkerLog {
String get key => TalkerLogType.riverpodUpdate.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand Down Expand Up @@ -112,8 +113,9 @@ class RiverpodDisposeLog extends TalkerLog {
String get key => TalkerLogType.riverpodDispose.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand Down Expand Up @@ -151,8 +153,9 @@ class RiverpodFailLog extends TalkerLog {
String? get key => TalkerLogType.riverpodFail.key;

@override
String generateTextMessage(
{TimeFormat timeFormat = TimeFormat.timeAndSeconds}) {
String generateTextMessage({
TimeFormat timeFormat = TimeFormat.timeAndSeconds,
}) {
return _createMessage();
}

Expand Down

0 comments on commit 56e1883

Please sign in to comment.