WEB-12525 [Dart] Pub build - add ability to set the mode