init method
Future<void>
init({
- required bool printLogs,
- required String buildNumber,
- required String version,
- LogCallBack? appLogsFunction,
- ErrorLogCallBack? errorLogsFunction,
- FirebaseOptions? options,
- String? name,
Implementation
Future<void> init({
required bool printLogs,
required String buildNumber,
required String version,
LogCallBack? appLogsFunction,
ErrorLogCallBack? errorLogsFunction,
FirebaseOptions? options,
String? name,
}) async {
if (appLogsFunction != null) {
appLogsNS = appLogsFunction;
}
if (errorLogsFunction != null) {
errorLogsNS = errorLogsFunction;
}
_isInitialized = true;
_buildNumber = buildNumber;
_version = version;
await initializeDefault(
options: options,
name: name,
);
}