onCreateIconCLick method

dynamic onCreateIconCLick(
  1. BuildContext context
)

Implementation

onCreateIconCLick(BuildContext context) {
  if (onCreateTap != null) {
    String gUid = "group_${DateTime.now().millisecondsSinceEpoch.toString()}";
    Group group = Group(
        guid: gUid,
        name: groupName,
        type: groupType,
        password: groupPassword);

    onCreateTap!(group);
  } else if (isLoading == false) {
    createGroup(context);
  }
}