FlutsterTestRecord constructor

FlutsterTestRecord({
  1. String? testName,
  2. DateTime? firstRecordingStart,
  3. List<FlutsterTestEvent>? events,
  4. String? apiUrl = "https://flutster.com",
  5. String? apiUser,
  6. String? apiKey,
  7. bool active = true,
})

FlutsterTestRecord takes parameters described as fields of the class.

Implementation

FlutsterTestRecord({
  String? testName,
  this.firstRecordingStart,
  List<FlutsterTestEvent>? events,
  this.apiUrl = "https://flutster.com",
  this.apiUser,
  this.apiKey,
  this.active = true,
}) {
  assert(
      (apiUser == null && apiKey == null) ||
          (apiUser != null && apiKey != null),
      "apiUrl, apiUser and apiKey must be given together to work");
  if (testName != null) {
    this.testName = testName;
  }
  if (events != null) {
    this.events = events;
  }
}