AnswerModel constructor

AnswerModel({
  1. required String title,
  2. int percentage = 0,
  3. int numberOfPoll = 0,
  4. String status = "",
  5. String clientId = "",
  6. String userName = "",
  7. String userRef = "",
})

Implementation

AnswerModel({
  required String title,
  int percentage = 0,
  int numberOfPoll = 0,
  String status = "",
  String clientId = "",
  String userName = "",
  String userRef = "",
})  : _title = title,
      _percentage = percentage,
      _numberOfPoll = numberOfPoll,
      _status = status,
      _clientId = clientId,
      _userName = userName,
      _userRef = userRef;