fetchRole method Null safety

Future<List> fetchRole()

子ロールを取得する

Implementation

Future<List> fetchRole() async {
  var query = NCMBRole.query();
  query.relatedTo(this, 'belongRole');
  return query.fetchAll();
}