NetWorkRequest constructor

const NetWorkRequest({
  1. required String path,
  2. Map<String, dynamic>? body,
  3. required NetworkMethod method,
  4. Map<String, String> headers = const {"Content-Type" : 'application/json'},
})

Implementation

const NetWorkRequest({
  required this.path,
  this.body,
  required this.method,
  this.headers = const {"Content-Type": 'application/json'},
});