EnhancedFollowerLayer constructor

EnhancedFollowerLayer({
  1. required EnhancedLayerLink link,
  2. required bool? showWhenUnlinked,
  3. required Offset linkedOffsetCallback(),
  4. Offset? unlinkedOffset = Offset.zero,
  5. required String? debugName,
})

Creates a follower layer.

The link property must not be null.

Implementation

EnhancedFollowerLayer({
  required this.link,
  required this.showWhenUnlinked,
  // NOTE MODIFIED add [linkedOffsetCallback], remove several arguments like
  // [showWhenUnlinked], [unlinkedOffset], [linkedOffset]
  required this.linkedOffsetCallback,
  this.unlinkedOffset = Offset.zero,
  required this.debugName,
});