openOptions method
Implementation
void openOptions(AppModel app, BuildContext context) {
String title;
String message;
if (followingView == FollowingView.followers) {
title = 'Reject follower?';
message =
'Would you like to reject ${(value == null) || (value!.follower == null) || (value!.follower!.name == null) ? value!.follower!.name! : ''}';
} else {
title = 'Unfollow this person?';
message =
"Would you like to unfollow ${(value == null) || (value!.followed == null) || (value!.followed!.name == null) ? value!.followed!.name! : ''}";
}
openAckNackDialog(app, context, '${app.documentID}/follow',
title: title, message: message, onSelection: (selectedValue) async {
Navigator.pop(context);
if (selectedValue == 0) {
await followingRepository(appId: app.documentID)!.delete(value!);
}
});
}