Flow control
if
user-profile(flutter-view :user[User])
.user
.name ${user.name}
.company(if='user.company != null') Works at ${user.company}UserProfile({required User user}) {
return Container(
child: Column(
children: [
Container(
child: Text('${user.name}'),
),
user.company != null ?
Container(
child: Text('Works at ${user.company}'),
)
: SizedBox(),
],
),
);
}
// left out some flatten operations for simplicityif-null
app-bar
.title(as='title' null-if='user.name == null') ${user.name}PlatformAppBar(
title: !(name == null) ?
Container(
child: Text(
'${name}',
),
) : null,
)slot
for
Last updated