UserAgent constructor

UserAgent(
  1. {required String name,
  2. String? version,
  3. String? system,
  4. String? url,
  5. String? comment}
)

Implementation

UserAgent({
  required this.name,
  this.version,
  this.system,
  this.url,
  this.comment,
}) {
  if (name.trim().isEmpty) {
    throw Exception('A non empty name is required');
  }
}