This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @Query('SELECT * FROM article ORDER BY publishedAt DESC') | |
| Stream<List<Article>> getAllArticles(); | |
| @Query('SELECT Author.*, _junction.articleId as articleId FROM ArticleAuthor AS _junction inner join Author ON (_junction.authorId = Author.id) WHERE _junction.articleId IN (:ids)') | |
| Future<List<AuthorArticleId>> getAuthorsFromArticles(List<int> ids); | |
| Stream<List<ArticleWithAuthor>> getAllArticlesWithAuthors() { | |
| final stream = getAllArticles(); | |
| final controller = StreamController<List<ArticleWithAuthor>>.broadcast(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //+------------------------------------------------------------------+ | |
| //| ProjectName | | |
| //| Copyright 2020, CompanyName | | |
| //| http://www.companyname.net | | |
| //+------------------------------------------------------------------+ | |
| int macdHandle; | |
| int isBuySignal = -1; | |
| void OnTick() | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var type = "buy", | |
| quantity = "11,300", | |
| disclosedQuantity = 0, | |
| minimumQuantity = 0, | |
| price="49,370", | |
| instrumentID="IRO1PAKS0001", | |
| validityType="J", | |
| validityDate="", | |
| allowUnlimitedQuntityInOrder=false, | |
| underCaution = false | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'dart:math' as Math; | |
| import 'package:flutter/material.dart'; | |
| class CustomSlider extends StatefulWidget { | |
| final int max; | |
| final int value; | |
| const CustomSlider({Key key, this.max = 100, this.value}) : super(key: key); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'package:flutter/material.dart'; | |
| /// | |
| /// we use this class as mixin on widget for accessing after method build callback | |
| /// | |
| class OnWidgetBuildMixin { | |
| void onWidgetDidBuild(Function callback) { | |
| WidgetsBinding.instance.addPostFrameCallback((_) { | |
| callback(); | |
| }); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| class CircleWaveWidget extends StatelessWidget { | |
| final int total; | |
| final int value; | |
| final double radius; | |
| final double elevation; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'package:core/src/datasource/shared/file_api.dart'; | |
| import 'package:core/src/datasource/shared/file_model.dart'; | |
| import 'package:rxdart/rxdart.dart'; | |
| class FileBloc { | |
| final FileApi fileApi; | |
| var _files = List<FileModel>(); // it act like cache | |
| final _filesSubject = BehaviorSubject<List<FileModel>>(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'dart:convert'; | |
| import 'dart:io'; | |
| import 'package:async/async.dart'; | |
| import 'package:core/src/datasource/shared/base_api.dart'; | |
| import 'package:core/src/datasource/shared/file_model.dart'; | |
| import 'package:core/src/pref_repo.dart'; | |
| import 'package:core/src/utils/api_error.dart'; | |
| import 'package:http/http.dart'; | |
| import 'package:http/http.dart' as http; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import 'package:core/src/datasource/shared/file_api.dart'; | |
| import 'package:core/src/datasource/shared/file_model.dart'; | |
| import 'package:rxdart/rxdart.dart'; | |
| class FileBloc { | |
| final FileApi fileApi; | |
| var _files = List<FileModel>(); // it act like cache | |
| final _filesSubject = BehaviorSubject<List<FileModel>>(); | 
NewerOlder