getInstructors method Null safety

String getInstructors()

Implementation

String getInstructors() {
  ///Use https://dart-lang.github.io/linter/lints/use_string_buffers.html
  final buffer = StringBuffer();
  if (instructors!.isNotEmpty) {
    buffer.write(instructors![0]);
    for (var i = 1; i < instructors!.length; i++) {
      buffer.write(',${instructors![i]}');
    }
  }
  return buffer.toString();
}