create method Null safety
- {Size? size}
override
Creates the platform view with the initial size
.
size
is the view's initial size in logical pixel.
size
can be omitted if the concrete implementation doesn't require an initial size
to create the platform view.
Implementation
@override
Future<void> create({Size? size}) async {
if (size == null) {
return;
}
assert(_state == _AndroidViewState.waitingForSize, 'Android view is already sized. View id: $viewId');
assert(!size.isEmpty);
return super.create(size: size);
}