delete method Null safety

Future<PlanModel> delete(
  1. String id,
  2. String customApiToken
)

Implementation

Future<PlanModel> delete(String id, String customApiToken) async {
  var result = await apiResource.delete(id: id, apiUserToken: customApiToken);
  return PlanModel.fromMap(result);
}