init method

Future<void> init({
  1. required bool printLogs,
  2. required String buildNumber,
  3. required String version,
  4. LogCallBack? appLogsFunction,
  5. ErrorLogCallBack? errorLogsFunction,
  6. FirebaseOptions? options,
  7. 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,
  );
}