// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.import'dart:ui'asuishowImage;import'package:flutter/painting.dart';import'package:flutter_test/flutter_test.dart';Future<void>main()async{finalui.ImagesmallImage=awaitcreateTestImage(width:10,height:20);finalui.ImagemiddleImage=awaitcreateTestImage(width:20,height:100);finalui.ImagebigImage=awaitcreateTestImage(width:100,height:200);test('ImageInfo sizeBytes',(){ImageInfoimageInfo=ImageInfo(image:smallImage);expect(imageInfo.sizeBytes,equals(800));imageInfo=ImageInfo(image:middleImage);expect(imageInfo.sizeBytes,equals(8000));imageInfo=ImageInfo(image:bigImage);expect(imageInfo.sizeBytes,equals(80000));});}