- Add share button to formula list with export functionality
- Implement proper escaping of special characters (\n, \t, \", etc.) in FormulaElement.toStringLiteral methods
- Create escapeD4rtString helper function for consistent escaping
- Update Formula, UnitSpec, and VariableSpec toStringLiteral methods to use escaping
- Add share_plus package dependency for sharing functionality
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Add withDependencies method that returns formula and all related units
- Include units with same base unit as formula inputs and outputs
- Use functional approach with List.map and List.addAll for cleaner code
- Prevent duplicates by using Set for internal storage
- Add comprehensive tests to verify functionality and duplicate prevention
- Mark task as [R] in TODO.md as required by workflow
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>