Line data Source code
1 20 : enum LookupAttribute { 2 : activityId, 3 : reactionId, 4 : userId, 5 : } 6 : 7 : /// Convenient class Extension on [LookupAttribute] enum 8 : extension LookupAttributeX on LookupAttribute { 9 : /// Convenient method Extension to generate [attr] from [LookupAttribute] enum 10 2 : String? get attr => { 11 : LookupAttribute.activityId: 'activity_id', 12 : LookupAttribute.reactionId: 'reaction_id', 13 : LookupAttribute.userId: 'user_id', 14 1 : }[this]; 15 : }