• alanwutang11's avatar
    Fix is canvas kit bool (#116944) · c0dddacb
    alanwutang11 authored
    * isCanvasKit implement and test
    
    * isCanvasKit implement and test
    
    * ++
    
    * forgot license
    
    * make isCanvasKit a getter
    
    * addressed comments
    
    * forgot to change names of integration test files
    
    * typo
    
    * simplified tests
    
    * comments
    c0dddacb
capabilities.dart 406 Bytes
// 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 '_capabilities_io.dart'
  if (dart.library.js_util) '_capabilities_web.dart' as capabilities;

/// Returns true if the application is using CanvasKit.
///
/// Only to be used for web.
bool get isCanvasKit => capabilities.isCanvasKit;