CowGroup class Null safety Models

소 그룹 모델입니다.

Annotations

Constructors

CowGroup({required int id, required String name, List<Cow> cows = const [], bool isSelected = false, TextEditingController? controller, FocusNode? focusNode})
CowGroup.fromJson(Map<String, dynamic> json)
factory

Properties

controller TextEditingController?
그룹관리 화면에서 그룹이름 텍스트 에디터의 컨트롤러입니다. 그룹목록에서 에디터가 모두 표현되므로 그냥 모델에 선언하였습니다.
@JsonKey(ignore: true), read / write
cows List<Cow>
이 소그룹에 속한 소의 리스트입니다. API 서버에서 파싱할때 사용되는건 아니고 그룹관리화면에서 그룹에 추가하거나 수정 삭제할때 사용됩니다.
@JsonKey(ignore: true), read / write
focusNode FocusNode?
텍스트 에디터의 포커스
@JsonKey(ignore: true), read / write
hashCode int
The hash code for this object. [...]
read-only, override
id int
소 그룹의 아이디입니다.
@JsonKey(name: 'id'), read / write
isSelected bool
그룹관리
@JsonKey(ignore: true), read / write
name String
소 그룹의 이름입니다.
@JsonKey(name: 'name'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override