toINR method
Formats this integer as Indian Rupee (INR).
Note: Requires importing 'package:swift_flutter/core/currency.dart'
Example:
int price = 10000;
String formatted = price.toINR(); // '₹10,000'
Implementation
String toINR() {
// Currency is optional - import separately if needed
// For now, use simple formatting
return '₹${toDouble().toStringAsFixed(2).replaceAllMapped(
RegExp(r'(\d{1,3})(?=(\d{3})+(?!\d))'),
(Match m) => '${m[1]},',
)}';
}