This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* melakukan konversi `Map<dynamic, dynamic>` ke `Map<String, String>`. | |
* dengan ketentuan, `null` harus menjadi `` (string kosong, bukan string `'null'`). | |
* yang digunakan sebagai body pada http-request. | |
*/ | |
void main() { | |
Map<dynamic, dynamic> params = { | |
'null': null, | |
'int0': 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/a/53765893 | |
class _DumpV1 { | |
@override | |
noSuchMethod(Invocation invocation) { | |
print(invocation.memberName); | |
int index = invocation.memberName.toString().length; | |
for (final e in invocation.positionalArguments) { | |
print(e); | |
if (index < e.toString().length) index = e.toString().length; | |
if (index > 1024) index = 1024; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use App\Models\Kabupaten; | |
use App\Models\Provinsi; | |
use App\Models\User; | |
use Faker\Factory; | |
use Faker\Generator; | |
use Illuminate\Console\Command; |
OlderNewer