command property

Object? get command

The command override passed to withCommand, or null when the image's default entrypoint is used.

The runtime type is either a String or a List<String>, depending on how withCommand was called. Use is String / is List<String> to distinguish the two forms, or prefer passing a List<String> to withCommand for stronger type guarantees.

Implementation

Object? get command => _command;