@@ -13,14 +13,14 @@ class NyLogger {
1313 /// Logs a debug [message] to the console.
1414 /// It will only print if your app's environment is in debug mode.
1515 /// You can override this by setting [alwaysPrint] = true.
16- static debug (dynamic message, {bool alwaysPrint = false }) {
16+ static void debug (dynamic message, {bool alwaysPrint = false }) {
1717 _loggerPrint (message ?? "" , 'debug' , alwaysPrint);
1818 }
1919
2020 /// Logs an error [message] to the console.
2121 /// It will only print if your app's environment is in debug mode.
2222 /// You can override this by setting [alwaysPrint] = true.
23- static error (dynamic message, {bool alwaysPrint = false }) {
23+ static void error (dynamic message, {bool alwaysPrint = false }) {
2424 if (message is Exception ) {
2525 _loggerPrint (message.toString (), 'error' , alwaysPrint);
2626 return ;
@@ -31,12 +31,12 @@ class NyLogger {
3131 /// Log an info [message] to the console.
3232 /// It will only print if your app's environment is in debug mode.
3333 /// You can override this by setting [alwaysPrint] = true.
34- static info (dynamic message, {bool alwaysPrint = false }) {
34+ static void info (dynamic message, {bool alwaysPrint = false }) {
3535 _loggerPrint (message ?? "" , 'info' , alwaysPrint);
3636 }
3737
3838 /// Dumps a [message] with a tag.
39- static dump (dynamic message, String ? tag, {bool alwaysPrint = false }) {
39+ static void dump (dynamic message, String ? tag, {bool alwaysPrint = false }) {
4040 _loggerPrint (message ?? "" , tag, alwaysPrint);
4141 }
4242
@@ -75,7 +75,7 @@ class NyLogger {
7575 }
7676
7777 /// Log a message to the console.
78- static _logMessage (dynamic message) {
78+ static void _logMessage (dynamic message) {
7979 if (kDebugMode) {
8080 if (message is String && message.length > 800 ) {
8181 log (message);
0 commit comments