phpFileName property

String get phpFileName

Nome de arquivo PHP correspondente (ex.: /api/leadsleads.php).

Implementation

String get phpFileName {
  final seg = path.split('/').where((s) => s.isNotEmpty);
  return '${seg.isEmpty ? 'index' : seg.last}.php';
}