init static method
Must be called once at app startup
Implementation
static Future<void> init() async {
if (_feedbackApp != null) {
return;
}
const String key = 'AIzaSyAWE3-';
_feedbackApp = await Firebase.initializeApp(
name: 'feedback',
options: const FirebaseOptions(
apiKey: '${key}_J2k0LN07hwsjkxtX_lwUZHyS0LU',
appId: '1:971012047862:web:a5db54d3d73fe9967d3dd7',
projectId: 'feedback-manager-fa4a2',
databaseURL:
'https://feedback-manager-fa4a2-default-rtdb.asia-southeast1.firebasedatabase.app',
messagingSenderId: '971012047862',
),
);
_db = FirebaseDatabase.instanceFor(app: _feedbackApp!);
}