StatusBarItem constructor

StatusBarItem({
  1. String? id,
  2. StatusBarAlignment? alignment,
  3. num? priority,
  4. String? name,
  5. String? text,
  6. dynamic tooltip,
  7. dynamic color,
  8. ThemeColor? backgroundColor,
  9. dynamic command,
  10. AccessibilityInformation? accessibilityInformation,
  11. void show()?,
  12. void hide()?,
  13. void dispose()?,
})

Implementation

factory StatusBarItem({
  _i2.String? id,
  _i3.StatusBarAlignment? alignment,
  _i2.num? priority,
  _i2.String? name,
  _i2.String? text,
  _i2.dynamic tooltip,
  _i2.dynamic color,
  _i3.ThemeColor? backgroundColor,
  _i2.dynamic command,
  _i3.AccessibilityInformation? accessibilityInformation,
  void Function()? show,
  void Function()? hide,
  void Function()? dispose,
}) =>
    StatusBarItem._(
      id: id,
      alignment: alignment?.name,
      priority: priority ?? _i6.undefined,
      name: name ?? _i6.undefined,
      text: text,
      tooltip: tooltip,
      color: color,
      backgroundColor: backgroundColor ?? _i6.undefined,
      command: command,
      accessibilityInformation: accessibilityInformation ?? _i6.undefined,
      show: show == null ? null : _i5.allowInterop(show),
      hide: hide == null ? null : _i5.allowInterop(hide),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );