Index constructor

const Index({
  1. int? index = 0,
  2. String? name = '',
  3. bool? transparent = false,
  4. List<String>? alias = const [],
  5. String? pattern = '',
  6. bool? primary = false,
  7. Type? type,
})

Creates a new Index instance.

Use this constructor when the default behavior is not desired.

Implementation

const Index({
  this.index = 0,
  this.name = '',
  this.transparent = false,
  this.alias = const [],
  this.pattern = '',
  this.primary = false,
  this.type,
});