ds_common library

Classes

AppMetricaAdRevenue
FROM appmetrica_plugin PACKAGE The class to store Ad Revenue data. You can set:
CloseableTree
Abstract class to mark implementor as Closable Tree
CustomFormatTree
Custom format tree. Tag generation included allows to define tokens in format, which will be replaced with a value for each log line.
DebugTree
Debug log tree. Tag generation included
DSAdLocker
DSAnsiColor
Copied from pub.dartlang.org/logger-1.1.0/lib/src/ansi_color.dart This class handles colorizing of terminal output.
DSAppState
Call DSAppState.preInit before create application in all cases
DSConstants
DSCrashReportingTree
DSDebugTree
DSFimberService
DSLimitedBlock
DSLimitedText
DSMetrica
You must call await DSMetrica.init() at the app start
DSNavigatorObserver
Trace navigation in app Based on FlutterUxcamNavigatorObserver of flutter_uxcam
DSPrefs
DSReferrer
DSReferrer helps to separate organic and partner traffic. Also it send referrer data to Firebase collection installs_full_referrer and DSMetrica statistics.
DSRemoteConfig
DSScaleLimiter
Fimber
Main static Fimber logging.
FimberLog
Stand alone logger with custom tag defined.
LimitedStackTrace
LogLineInfo
Log Line Information. Used when extracting tag and attaching log line number value.
LogTree
Interface for LogTree
UnPlantableTree
Interface for LogTree that have some lifecycle with it. Introduces callbacks to plant and unroot events.

Extensions

ObjExtenstions on T

Functions

catchAsWarning(void func()) → void
catchAsWarningAsync(Future<void> func()) Future<void>
logDebug(String message, {int stackSkip = 0, int stackDeep = 5}) → void
logTest(String message, {int stackSkip = 0, int stackDeep = 3}) → void
unawaitedCatch(Future<void> func()) → void

Typedefs

AppMetricaAdType = AppMetricaAdType
AppMetricaErrorDescription = AppMetricaErrorDescription
Decimal = Decimal
DSAppLifecycleStateCallback = void Function(AppLifecycleState? oldState, AppLifecycleState state)
DSMetricaAttrsCallback = Map<String, Object> Function()
DSReferrerCallback = void Function(Map<String, String> fields)
RunWithLog = dynamic Function(FimberLog log)
Function that is run with a FimberLog as parameter. This saves time for fetching generated Tag from code at time of compilation. Can be used in blocks of code that require logging and speed.
StringAttribute = AppMetricaStringAttribute
UserProfile = AppMetricaUserProfile