contactModel static method

String contactModel()

Implementation

static String contactModel() {
  return '''
class Contact {
final String name;
final String phoneNumber;

Contact({
  required this.name,
  required this.phoneNumber,
});

@override
String toString() => '\$name - \$phoneNumber';
}
''';
}