2023-12-21 09:14:40 +00:00
|
|
|
library guru_utils;
|
|
|
|
|
|
2024-03-07 03:46:50 +00:00
|
|
|
import 'package:guru_utils/auth/auth_credential_manager.dart';
|
|
|
|
|
|
2023-12-21 09:14:40 +00:00
|
|
|
typedef ToastDelegate = void Function(String message, {Duration duration});
|
|
|
|
|
|
|
|
|
|
class GuruUtils {
|
|
|
|
|
static ToastDelegate? toastDelegate;
|
|
|
|
|
|
|
|
|
|
static String? flavor;
|
|
|
|
|
|
|
|
|
|
static bool isTablet = false;
|
|
|
|
|
|
|
|
|
|
static void showToast(String message, {Duration duration = const Duration(seconds: 3)}) {
|
|
|
|
|
toastDelegate?.call(message, duration: duration);
|
|
|
|
|
}
|
|
|
|
|
}
|