apply method

  1. @override
Future<void> apply(
  1. String type,
  2. Object id,
  3. Role role
)

Implementation

@override
Future<void> apply(String type, Object id, Role role) => DB
    .table('model_has_roles')
    .insertOrIgnore({'role_id': role.id, 'model_type': type, 'model_id': id});