Club class

Constructors

Club({required String id, required String uid, required String master, required String name, required String description, String? photoUrl, required List<String> users, required String reminder})
Club.fromMap(Map map, String id)
factory
Club.fromSnapshot(DocumentSnapshot<Object?> snapshot)
factory

Properties

description String
final
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
isMaster bool
no setter
joined bool
no setter
master String
final
name String
final
photoUrl String?
final
ref → DocumentReference<Object?>
no setter
reminder String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String
final
users List<String>
final

Methods

delete({required BuildContext context}) Future
클럽 삭제
join() → dynamic
클럽 가입
leave() → dynamic
클럽 탈퇴
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
update({String? name, String? description, String? photoUrl, bool? hasPhoto, String? reminder}) Future<void>
Update club

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

col → CollectionReference<Map<String, dynamic>>
final

Static Methods

create({required String name}) Future<Club>
모임 만들기
get({String? id, DocumentReference<Object?>? ref}) Future<Club>
toCreate({required String name}) Map<String, dynamic>
클럽 생성을 위한, 데이터 맵을 만든다.