init method

Future<void> init(
  1. BuildContext context
)

Implementation

Future<void> init(BuildContext context) async {
  final response = await _fetchMappings();
  // print(response);
  _userMapping = response['userMapping'];
  _eventMapping = response['eventMapping'];
  _userRequiredCol = response['userRequiredCol'];
  _eventRequiredCol = response['eventRequiredCol'];
  _jwtToken = response['jwtToken'];
  getConnectivity(context);
}