menu
event_db package
documentation
event_db.dart
BaseModelIDExtension extension
BaseModelIDExtension extension
dark_mode
light_mode
BaseModelIDExtension
extension
Provides convenience functions for interacting with the id and type of a
BaseModel
on
BaseModel
Properties
autoGenId
→
String
Returns
id
if that value is not null. Otherwise will automatically generate a new value for
id
with the
idSuffix
setter.
no setter
idSuffix
↔
String
?
Returns the last part of this
id
, which is always a unique identifier.
getter/setter pair
Methods
prefixTypeForId
(
String
idSuffix
)
→
String
Prefixes this
BaseModel
's
type
to
idSuffix
event_db package
documentation
event_db
BaseModelIDExtension extension
event_db library