getCodeFromMap method

IExpression getCodeFromMap(
  1. Map map
)
{
  "as": "Scaffold",
  "appBar": {
     "as": "AppBar",
     "title": "'Ahmet'",
     "centerTitle": "false"
   },
 }

Output: Scaffold(appBar: AppBar(title: 'Ahmet', centerTitle: false))

Implementation

IExpression getCodeFromMap(Map map) {
  return Call(map['as'], argument: _getArgument(map));
}