columnDefinitions property

Map<String, String> columnDefinitions
getter/setter pair

Database column definitions for persisted roles.

The name field is required and unique. The description field is optional.

Example:

print(Role.columnDefinitions['name']); // TEXT NOT NULL UNIQUE

Implementation

static Map<String, String> columnDefinitions = {'name': 'TEXT NOT NULL UNIQUE', 'description': 'TEXT'};