openLeading method

void openLeading({
  1. bool animated = true,
})

Programmatically opens the leading actions.

Implementation

void openLeading({bool animated = true}) {
  if (!mounted || widget.leadingActions.isEmpty) return;
  final totalWidth = _totalStandardWidth(widget.leadingActions.length);
  final isRtl = Directionality.of(context) == TextDirection.rtl;
  final target = isRtl ? -totalWidth : totalWidth;
  _scope?.registerOpenRow(this);
  _animateTo(target, animated: animated);
}